When virtualenvwrapper configuration, source ~ / .bashrc Error

Executing the

 1 sudo pip3 install virtualenv

2 sudo pip3 install virtualenvwrapper 

Then run

 1 source ~/.bashrc 

The following error occurred

 

 Cause Analysis:

We collected a lot of information online, probably to say, when you install virtualenv and virtualenvwrapper under python3 directory, and run source ~ / when .bashrc, the system default with the python2.7 (set during installation of VMware comes for the ) so the file can not be found in python3 path.

solution:

I own a pyhton2.7 installation, use python2.7 reinstall virtualenv and virtualenvwrapper, and then perform source ~ / .bashrc to complete the configuration.

 

But then it may appear two lines of code, which means the file can not be found.

 1 bash: /usr/local/bin/virtualenvwrapper.sh: No such file or directory 

solution:

(Refer to: https: //blog.csdn.net/gyniu/article/details/81022534)

Originally bash.sh file code is

1 source /usr/local/bin/virtualenvwrapper.sh

Now changed

1 source ~/.local/bin/virtualenvwrapper.sh

Then execute source ~ / .bashrc

Can solve the problem, complete the configuration.

 

Guess you like

Origin www.cnblogs.com/liyanyinng/p/11641324.html