Folium import error - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: General Coding Help (https://python-forum.io/forum-8.html) +--- Thread: Folium import error (/thread-31363.html) |
Folium import error - kashif_flavio - Dec-07-2020 Hello I am trying to use folium library but it is not working for me. I have tried with python 2.7/3.6/3.9. Below is my code. import folium # Create map object m = folium.Map(location=[42.3601, -71.0589], zoom_start=12) # Create markers folium.Marker([24.943304651124997, 67.10031915579981], popup='<strong>Kashif Home</strong>', tooltip=tooltip).add_to(m) # Generate map m.save('mapnew.html')Here is my error message- I have installed requests
RE: Folium import error - buran - Dec-07-2020 it's not asking for requests . it complains about urllib.request which version of python do you use? it looks like you are using python2 RE: Folium import error - bowlofred - Dec-07-2020 You mention you've tried this with python3, but that particular error message is what I'd expect with python2 and that module tries to load.. $ python3 -c "import urllib.request;print('ok')" ok $ python2 -c "import urllib.request;print('ok')" Traceback (most recent call last): File "<string>", line 1, in <module> ImportError: No module named request |