Does Spyder download its own Python with it?

Viewed 3975

Common issue here: I installed Python and then Spyder, and now when I install packages with "pip install ", Spyder can't find the modules, but if I call Python on the command prompt (using Windows), it finds all installed packages with pip.

I noticed that in Spyder, a new console shows it is running Python 3.7.9, but if I run "python -V" on the command promp, it shows Python 3.9.1 , also for "py -0" and "py -0p" it only shows one installation of Python, namely

>>> py -0p
Installed Pythons found by py Launcher for Windows                                                                       
-3.9-64        C:\Users\my_name\AppData\Local\Programs\Python\Python39\python.exe *   

so what is going on here? Why does Spyder seem to have its own Python version? Is this the reason why packages installed with pip are not communicating with Spyder?

2 Answers

I was facing the same issue as you. I understand your question and the answer to it is yes. However you can change it and use the systems python as well.

Tools -> preferences -> python interpreter -> select "use the following interpreter" and provide is the path to the directory that you have the systems python installed.

Restart spyder and the kernel should then show you the update version

For any library that you want to add that is not included in the default search path of spyder, you need add its path via the PYTHONPATH manager.

Go to Spyder->Tool-> PYTHONPATH manager ->Add Path
Related