1.安装ipykernel库 (ENVv) acat@acat-xx:paper_or_gcn$ pip install ipykernel 2.把当前环境加入到jupyter中 (ENVv) acat@acat-xx:paper_or_gcn$ ipython kernel install --user --name=pytorch_fast_transformer Installed kernelspec pytorch_fast_transformer in /home/acat/.local/share/jupyter/kernels/pytorch_fast_transformer 3.查看所有的virtuanenv环境
(gcn-env) acat@acat-xx:graphsage$ jupyter kernelspec list
Available kernels:
env-sf /home/acat/.local/share/jupyter/kernels/env-sf
env2 /home/acat/.local/share/jupyter/kernels/env2
graphsage /home/acat/.local/share/jupyter/kernels/graphsage
j_env2.7 /home/acat/.local/share/jupyter/kernels/j_env2.7
python3 /home/acat/.local/share/jupyter/kernels/python3
pytorch_fast_transformer /home/acat/.local/share/jupyter/kernels/pytorch_fast_transformer
vit-env /home/acat/.local/share/jupyter/kernels/vit-env
4.删除指定name的virtuanenv环境
jupyter kernelspec uninstall graphsage