Python Virtualenv - No module named virtualenvwrapper.hook_loader

前端 未结 16 1522
野趣味
野趣味 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:27

    This happened to me and I solved it by re-installing pip. What had happend was that which pip gave /usr/bin/pip as a result, while which python gave /usr/local/bin/python. The path for pip should be /usr/local/bin/pip. This probably broke when I updated my Python installation.

    If you follow the pip documentation you can easily reinstall pip for your current working Python setup. You need to:

    1. Download the get-pip.py script (directly linked from pip's documentation).
    2. Run python get-pip.py.

    This solved the problem for me.

提交回复
热议问题