conda環境與jupyter kernel 管理

環境

創建環境
conda create -n new_env python=3.7.4

列出現有環境
conda env list

複製舊環境到新env

conda create -n new_name_env --clone old_env

移除舊環境

conda remove -n old_env --all

kernel

查看

jupyter kernelspec list

進入環境,安裝kernel

python -m ipykernel install --user --name tf2 --display-name "tf2"

刪除指定kernel

 jupyter kernelspec remove kernel_name

源的問題(清華、科大、阿里、豆瓣)

建立.condarc文件

ssl_verify: true
channels:
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
  - https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
  - defaults
show_channel_urls: true
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章