Pip Install not installing into correct directory?

前端 未结 10 1102
小蘑菇
小蘑菇 2020-11-29 04:22

I can\'t seem to use sudo pip install correctly so that it installs into the following directory:

/Library/Frameworks/Python.framework/Versions/2.7/lib/pyth         


        
10条回答
  •  悲&欢浪女
    2020-11-29 04:26

    Make sure you pip version matches your python version.

    to get your python version use:

    python -V

    then install the correct pip. You might already have intall in that case try to use:

    pip-2.5 install ...

    pip-2.7 install ...

    or for those of you using macports make sure your version match using.

    port select --list pip

    then change to the same python version you are using.

    sudo port select --set pip pip27

    Hope this helps. It work on my end.

提交回复
热议问题