Useful command - Python/conda/pip

Useful commands of Python/conda/pip

Posted by Seasons on June 9, 2022

Useful commends - Python/Conda/Pip

Pip

1
python3 -m pip install tensorflow==2.4.1 -i https://pypi.tuna.tsinghua.edu.cn/simple --default-timeout=200pi

conda

environment

1
2
3
4
5
6
7
8
9
   # 创建环境
   conda create -n rcnn python=3.6
   
   # delete
   conda remove -n rcnn --all
   
   # rename
   conda create -n tf --clone rcnn
   conda remove -n rcnn --all

jupyter

1
2
3
4
5
6
7
conda install jypyter
python -m ipykernel install --name cvat --display-name "cvat(python3.7)" --user

nohup jupyter-notebook --ip 0.0.0.0 &

### 远程配置
https://zhuanlan.zhihu.com/p/75354006