当前位置: 首页 > news >正文

Git+py+ipynb Usage

0.default config

ssh-keygen -t rsa #之后一路回车,当前目录.ssh/下产生公私钥
cat ~/.ssh/id_rsa.pub #复制公钥到账号
git config --global user.email account_email
git config --global user.name account_name

bug of ipynb

  1. TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
    ⟹ \Longrightarrow pip install ipywidgets
  2. Including PyArrow would naturally increase the installation size of pandas. For example, installing pandas and PyArrow using pip from wheels, numpy and pandas requires about 70MB, and including PyArrow requires an additional 120MB. An increase of installation size would have negative implication using pandas in space-constrained development or deployment environments such as AWS Lambda.
    ⟹ \Longrightarrow pip install pyarrow
    在这里插入图片描述

bug of .py

  1. 如果我们执行的是train.py,其中导入了代码from dataset import Dataset 中的dataset.py,但dataset.py和train.py不在一个目录下,不能直接用from dataset import DataSet,因为当前路径下没有dataset.py,该怎么办呢?
一种方法是使用绝对路径导入dataset.py。你可以指定完整的路径来导入模块。
例如,如果dataset.py的完整路径是/path/to/dataset.py,你可以使用以下代码导入:
import sys
sys.path.append('/path/to')
import dataset

这里的sys.path.append()将指定的路径添加到Python解释器的搜索路径(环境变量)中,然后你可以直接导入dataset.py。

http://www.lryc.cn/news/305893.html

相关文章:

  • eBPF实践篇之环境搭建
  • 机器学习科普及学习路线
  • 如何在本地电脑部署HadSky论坛并发布至公网可远程访问【内网穿透】
  • Spring Boot 笔记 025 主界面
  • (done) Positive Semidefinite Matrices 什么是半正定矩阵?如何证明一个矩阵是半正定矩阵? 可以使用特征值
  • 七、矩阵的初等变换
  • CSS background-size
  • 【机器学习】特征工程之特征选择
  • Java中PDF文件传输有哪些方法?
  • 前后端分离Vue+ElementUI+nodejs蛋糕甜品商城购物网站95m4l
  • Pytorch 复习总结 3
  • 2024年危险化学品经营单位主要负责人证考试题库及危险化学品经营单位主要负责人试题解析
  • go使用trpc案例
  • nodejs+vue+ElementUi废品废弃资源回收系统
  • 【Java程序设计】【C00277】基于Springboot的招生管理系统(有论文)
  • 汇编语言与接口技术实践——秒表
  • 【数据结构与算法】(19)高级数据结构与算法设计之 图 拓扑排序 最短路径 最小生成树 不相交集合(并查集合)代码示例
  • OSCP靶场--Nickel
  • 新建工程——库函数版
  • java 数据结构栈和队列
  • #LLM入门|Prompt#1.8_聊天机器人_Chatbot
  • LeetCode 2476.二叉搜索树最近节点查询:中序遍历 + 二分查找
  • 选座位 - 华为OD统一考试(C卷)
  • 【微服务】mybatis typehandler使用详解
  • 计网 - 深入理解HTTPS:加密技术的背后
  • Jmeter之单接口的性能测试
  • 成像光谱遥感技术中的AI革命:ChatGPT应用指南
  • 掌握BeautifulSoup4:爬虫解析器的基础与实战【第91篇—BeautifulSoup4】
  • 从源码解析Kruise(K8S)原地升级原理
  • 2024年【广东省安全员C证第四批(专职安全生产管理人员)】复审考试及广东省安全员C证第四批(专职安全生产管理人员)模拟考试题