Skip to content

Latest commit

 

History

History
86 lines (50 loc) · 2.4 KB

notes.md

File metadata and controls

86 lines (50 loc) · 2.4 KB

环境安装

pycocotools: pip install git+https://github.com/philferriere/cocoapi.git#subdirectory=PythonAPI
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
conda config --set show_channel_urls yes
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pip -U
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set global.index-url https://pypi.douban.com/simple/
conda env create -f env_info_file.yml
pip install torch==1.3.1+cu100 torchvision==0.4.2+cu100 -f https://download.pytorch.org/whl/torch_stable.html
conda search pytorch
conda search pytorch | grep 100
conda install pytorch=1.3.1=cuda100py36h53c1284_0

Linux

ps aux | grep -i 文件名

IDE

vscode远程连接服务器的教程 https://zhuanlan.zhihu.com/p/105707830

git

github上fork了别人的项目再同步更新别人的提交

git remote -v 
git remote add upstream git@github.com:xxx/xxx.git
git fetch upstream
git merge upstream/master
git push 

Debug

pip安装第三方包报错:There was a problem confirming the ssl certificate

创建pip配置pip.ini

(1)在系统目录C:\Users\用户\AppData\Roaming新建pip文件夹;

(2)在pip文件夹下新建pip.ini文件,并写入如下配置:

[global]
index-url = http://mirrors.aliyun.com/pypi/simple/
[install]
trusted-host = mirrors.aliyun.com
  • windows下pycocotools的安装及避坑
# 若Cython未安装,请安装Cython
pip install Cython

pip install pycocotools
  • import win32api ImportError: DLL load failed while importing win32api: 找不到指定的模块

Jupyter Lab报错:ImportError: DLL load failed while importing win32api: 找不到指定的模块

找到文件pywin32_postinstall.py,在D:\Anaconda3\envs\yolov5py38\Scripts目录下
启动虚拟环境,执行python pywin32_postinstall.py -install 即可