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
- TqdmWarning: IProgress not found. Please update jupyter and ipywidgets. See https://ipywidgets.readthedocs.io/en/stable/user_install.html
⟹ \Longrightarrow ⟹pip install ipywidgets
- 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
- 如果我们执行的是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。