Installing a pip package from within a Jupyter Notebook not working

前端 未结 10 2061
无人及你
无人及你 2020-12-02 09:24

When I run !pip install geocoder in Jupyter Notebook I get the same output as running pip install geocoder in the terminal but the geocoder package

10条回答
  •  有刺的猬
    2020-12-02 09:42

    This worked for me in Jupyter nOtebook /Mac Platform /Python 3 :

    import sys
    !{sys.executable} -m pip install -r requirements.txt
    

提交回复
热议问题