Can't import folium

367 views
Skip to first unread message

aziz tnani

unread,
Apr 1, 2021, 6:50:02 PM4/1/21
to spyder
Hi there,
I am trying to prepare a lesson for my students on Spider and I'm quite new to it
Computers are all running windows 10 and Spyder 4.2
I am not managing to import folium library
I wan to install it but don't know really how, I searched some forums and I found
"conda install folium" 
but it doesn't work, I have an error message saying : ValueError: The python kernel does not appear to be a conda environment.  Please use ``%pip install`` instead.
if I do run "%pip install folium" it says : 'C:\Program' is not recognized as an internal or external command, operable program or batch file.

I am kinda confused and I am stuck with this, please can someone help
Thanks

yfprojects

unread,
Apr 2, 2021, 4:38:26 AM4/2/21
to spyder
Hello,

in standard python new packages (like folium) are installed using the `pip` package manager. There is also a concept called virtual environments that lets you create multiple environments with different installed packages.
If you installed Spyder using the stand-alone windows installer, spyder will be using the standard python distribution, but not the main or default virtual environment. This can be changed. As explained in the Spyder FAQ.
If you installed Spyder using a anaconda distribution of python, you should be able to install packages using the graphical anaconda navigator (might not be the right name).

Since I am not using Windows, I am not sure how to use pip there but I looked in the Internet: I found a (kids) friendly guide on raspberrypi.org which normally provides well working tutorials. This one is about `pip` on Windows.
If you have more questions, don't hesitate to ask.

Kind regards,
yfprojects
Reply all
Reply to author
Forward
0 new messages