ENV 环境管理
Published:
常用环境配置
vscode - linux - miniconda
下载miniconda
curl -sL “https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh” > “Miniconda3.sh”
bash Miniconda3.sh source /etc/profile source ~/.bashrc
source /etc/profile
source ~/.bashrc
如果conda:command not found vim ~/.bashrc export PATH=$PATH:(安装目录)/home/vincent/anaconda3/bin
更改channel 下载更快一点
conda config –add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config –set show_channel_urls yes
构造环境
conda create -n python_3.6(名字) python=3.6
conda activate maxe
conda deactivate
conda env list
需要jupyter
pip install ipykernel
然后vscode 插件下jupyter相关即可