How to change default install location for pip

前端 未结 3 1899
天涯浪人
天涯浪人 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:36

    Open Terminal and type:

    pip config set global.target /Users/Bob/Library/Python/3.8/lib/python/site-packages
    

    except instead of

    /Users/Bob/Library/Python/3.8/lib/python/site-packages
    

    you would use whatever directory you want.

提交回复
热议问题