聚合国内IT技术精华文章,分享IT技术精华,帮助IT从业人士成长

Separate pip environment

2020-10-30 10:50 浏览: 1287 次 我要评论(0 条) 字号:

Days ago, I thought anaconda could separate different python environment, so I created a new conda environment to install new version pip package. And no doubt, it failed.

The fact is: conda could only separate different conda package environment, not pip package. To separate the pip environment, we need to use virtualenv.

# Create new env
virtualenv -p /home/my/anaconda3/bin/python3.6 venv_my
# Enter the new env
source venv_my/bin/activate

The post Separate pip environment first appeared on Robin on Linux.



网友评论已有0条评论, 我也要评论

发表评论

*

* (保密)

Ctrl+Enter 快捷回复