How to change default install location for pip

前端 未结 3 1906
天涯浪人
天涯浪人 2020-11-28 05:41

I\'m trying to install Pandas using pip, but I\'m having a bit of trouble. I just ran sudo pip install pandas which successfully downloaded pandas. However, i

3条回答
  •  野性不改
    2020-11-28 06:19

    You can set the following environment variable:

    PIP_TARGET=/path/to/pip/dir
    

    https://pip.pypa.io/en/stable/user_guide/#environment-variables

提交回复
热议问题