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
!pip install geocoder
pip install geocoder
Using pip2 worked for me:
!pip2 install geocoder ... import geocoder g = geocoder.google('Mountain View, CA') g.latlng [37.3860517, -122.0838511]