using pip to install packages locally in spite of satisfied global requirements

廉价感情. 提交于 2019-12-05 11:22:22

Citing Marcus Smith (maintainer of pip):

If you think the global site is out of date, and want the latest in the user site, then use:
pip install --upgrade --user SomePackage

Because (...) the package (in an older version) is already available globally on the system you have to use --upgrade option as per above Marcus' remark. Uninstalling system numpy package is probably a bug in the version of pip you use (1.2.1). Try current version as many issues related to --user option were fixed in versions 1.3 and 1.4

EDIT

Marcus Smith points to specific issue in his later comment:

pip 1.3 has #705 , which is critical for using --user and --upgrade together.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!