Installing a pip package from within a Jupyter Notebook not working

前端 未结 10 2141
无人及你
无人及你 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:38

    Using pip2 worked for me:

    !pip2 install geocoder
    ...
    import geocoder
    g = geocoder.google('Mountain View, CA')
    g.latlng
    [37.3860517, -122.0838511]
    

提交回复
热议问题