problems with python and virtualenvwrapper after updating: No module named virtualenvwrapper

前端 未结 3 1752
梦如初夏
梦如初夏 2020-12-01 05:44

I run python 2.7.6 with virtualenv, virtualenvwrapper under ubuntu 14.04. now i have installed python 2.7.9 from source. the new python interpreter is now located under

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 06:12

    If you have modified your virtualenvwrapper to point to python3, like I do, add the following line in your .bashrc file :

    export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
    

    making sure that it's placed before the following line (if you have it):

    source /usr/local/bin/virtualenvwrapper.sh
    

    Then, make sure you install the virtualenv and virtualenvwrapper using:

    sudo /usr/local/bin/pip3 install virtualenv virtualenvwrapper
    

提交回复
热议问题