ubuntu安装虚拟环境,以及遇到的坑

https://blog.51cto.com/10412806/2120131

上文步骤是正确的,但是不同的ubuntu版本会出现各种路径的问题。

以下记录我遇到的问题

1.在此文步骤二中,# source ~/.local/bin/virtualenvwrapper.sh  有时候出现路径问题,也多了一个点号

 参考此文https://blog.csdn.net/gyniu/article/details/81022534

将此指令改为,source /usr/local/bin/virtualenvwrapper.sh

2.在执行步骤三时,source ~/.bashrc,由于ubuntu中python有2和3,所以此步骤可能出现问题

参考此文https://blog.csdn.net/eyses__/article/details/86980016

 

 

你可能感兴趣的:(linux,ubuntu)