心得记录
- 使用版本的python执行 conda或者pip命令脚本安装
/opt/anaconda3/bin/python3.7 conda create -n superset python=3.7
# conda 的路径在 /opt/anaconda3/bin
- 激活虚拟环境命令
/opt/anaconda3/bin/python3.7 conda
# To activate this environment, use:
# > conda activate superset
#
# To deactivate an active environment, use:
# > conda deactivate
安装步骤
1.安装虚拟环境
/opt/anaconda3/bin/python3.7 conda create -n superset python=3.7
# conda 的路径在 /opt/anaconda3/bin
2.激活虚拟环境
conda activate superset //激活虚拟环境
conda deactivate //关闭虚拟环境
//可能报错
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run
$ conda init <SHELL_NAME>
//解决办法
# 重新进入虚拟环境
source activate
# 重新退出虚拟环境
source deactivate
网友评论