Where does pip install its packages?

后端 未结 7 1738
野的像风
野的像风 2020-12-02 03:52

I activated a virtualenv which has pip installed. I did

pip3 install Django==1.8

and Django successf

7条回答
  •  我在风中等你
    2020-12-02 03:59

    One can import the package then consult its help

    import statsmodels
    help(sm)
    

    At the very bottom of the help there is a section FILE that indicates where this package was installed.

    This solution was tested with at least matplotlib (3.1.2) and statsmodels (0.11.1) (python 3.8.2).

提交回复
热议问题