How do I access packages installed by `pip --user`?

前端 未结 3 1109
我在风中等你
我在风中等你 2020-12-14 08:16

I realized I had an outdated numpy version:

$ python
Python 2.7.10 (default, Oct 23 2015, 18:05:06)
[GCC 4.2.1 Compa         


        
3条回答
  •  感动是毒
    2020-12-14 08:57

    @Claudiu's solutions works pretty well, a little bit more cleaner would be:

    python3 -m site --user-base
    

    e.g. something like this in your .profile:

    PATH="$(python3 -m site --user-base)/bin:${PATH}"
    

提交回复
热议问题