pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
conda create -n your_env_name python=X.X(2.7、3.6、3.8等)
conda activate your_env_name
pip install torch==1.12.1+cu116 torchvision==0.13.1+cu116 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu116
pip install ipykernel
python -m ipykernel install --user --name your_env_name
import torch
print(torch.__version__)
print('gpu:',torch.cuda.is_available())
pip install -r requirements.txt
jupyter kernelspec remove xxxx
conda remove -n xxxx --all
发现anaconda装的库再jupyter里面没法跑
更新
conda update -n base --override-channels -c defaults conda
conda install nb_conda
conda activate my-conda-env
conda install ipykernel
conda deactivate
conda activate base # could be also some other environment
conda install nb_conda_kernels
jupyter notebook
tmux kill-server
tmux kill-session -a:当前在某个session内,用于kill 除当前session外,其他所有sessions。
tmux kill-session -t :kill某个特定的session(可以用tmux list-sessions查看当前所有sessions)。
pkill -f tmux:需要sudo权限,会连带清除所有其他users的sessions,慎用。
tmux kill-server:清除之后会出现server exited unexpectedly的错误,慎用。
https://blog.csdn.net/qq_51392112/article/details/129758113
tmux lost server
requirement文件如果有一项找不到库,就不能完成,所以要把出错的项目删掉
wget失败的时候
wget --no-check-certificate http://github.com/