Python Virtualenv - No module named virtualenvwrapper.hook_loader

前端 未结 16 1503
野趣味
野趣味 2020-12-02 06:01

I\'m running Mac OS 10.6.8. and wanted to install in addition to python 2.6 also python 2.7 and use python 2.7 in a new virtualenv. I executed the following steps:

I

16条回答
  •  栀梦
    栀梦 (楼主)
    2020-12-02 06:36

    For anyone using Ubuntu 18.04 and Python 3+, this did the trick for me:

    which python3 # outputs /usr/bin/python3 
    export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3  
    source `which virtualenvwrapper.sh`  
    

提交回复
热议问题