Skip to content
Advertisement

No module named ‘folium’ after installing via pip

Basically after I have already installed folium with pip (pip install folium) previously the code worked, but suddenly I got this error.

Here is my code:

JavaScript

Advertisement

Answer

2 possibilities come to my mind:

  • the first one, cited by Paul, is that you installed it with pip (for Python 2) and you try using it with Python 3 (so you need to install it with pip3 as cited in Paul’s answer)

  • You have a script file named folium(.py) and you should rename it

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement