How to instal Python packages for Spyder
Question:
I am using the IDE called Spyder for learning Python.
I would like to know in how to go about in installing Python packages for Spyder?
Answers:
Spyder is a package too, you can install packages using pip or conda, and spyder will access them using your python path in environment.
Spyder is not a package manager like conda,, but an IDE like jupyter notebook and VS Code.
For the latest versions of Spyder use this console
at right bottom
Note: Once you hit enter it may take some time to install and you can’t see the progress until it finishes.
Else:
-
Open anaconda command prompt
-
Activate your environment: conda activate env-name
-
Install the package: conda install your-package-name
I am running Spyder 4.2.4 and for me following solution turned out to be working:
- open tools-> preferences -> python interpreter
- click ‘use the following python interpreter’
- point the location to local python installation, in my case : C:UsersMYUSERAppDataLocalProgramsPythonPython37python.exe
- Click OK and restart the kernel.
Now the pip started to work and I was able to import any package I previously installed on the cmd/python CLI.
I have not checked if the ways described by people here before me work or not.
I am running Spyder 5.0.5, and for me below steps worked:
- Step 1: Open anaconda prompt (I had my Spyder opened parallelly)
- Step 2: write – "pip install package-name"
Note: I got my Spyder 5.0.5 up and running after installing the whole Anaconda Navigator 2.0.3.
I installed Basic Python IDLE(python 3.9)
As I used to Spyder. I installed a standalone Spyder from https://www.spyder-ide.org/
Then I faced problems for packages
I tried this one
pip install spyder spyder-terminal
I am using the IDE called Spyder for learning Python.
I would like to know in how to go about in installing Python packages for Spyder?
Spyder is a package too, you can install packages using pip or conda, and spyder will access them using your python path in environment.
Spyder is not a package manager like conda,, but an IDE like jupyter notebook and VS Code.
For the latest versions of Spyder use this console
at right bottom
Note: Once you hit enter it may take some time to install and you can’t see the progress until it finishes.
Else:
-
Open anaconda command prompt
-
Activate your environment:
conda activate env-name
-
Install the package:
conda install your-package-name
I am running Spyder 4.2.4 and for me following solution turned out to be working:
- open tools-> preferences -> python interpreter
- click ‘use the following python interpreter’
- point the location to local python installation, in my case : C:UsersMYUSERAppDataLocalProgramsPythonPython37python.exe
- Click OK and restart the kernel.
Now the pip started to work and I was able to import any package I previously installed on the cmd/python CLI.
I have not checked if the ways described by people here before me work or not.
I am running Spyder 5.0.5, and for me below steps worked:
- Step 1: Open anaconda prompt (I had my Spyder opened parallelly)
- Step 2: write – "pip install package-name"
Note: I got my Spyder 5.0.5 up and running after installing the whole Anaconda Navigator 2.0.3.
I installed Basic Python IDLE(python 3.9)
As I used to Spyder. I installed a standalone Spyder from https://www.spyder-ide.org/
Then I faced problems for packages
I tried this one
pip install spyder spyder-terminal