Spyder 5使用其他解析器
Spyder has released version 5 of Spyder IDE and it comes with its own set of packages. If you want to use other packages than pre-installed packages, following set of instructions may be helpful to you.
Step-1: Add path of Python installation to PYTHONPATH manager of Spyder
Go to Tools –> PYTHONPATH MANAGER –> Add the Python Installation Path as shown below:
![](https://puneetpanwar.com/wp-content/uploads/2021/09/pythonpath_manager.jpg)
To find python installation directory on Windows 10, you may use the following method:
(a). Go to search bar and type “Python” (provided you have python installed on your system) and go to the file location of Python application file.
![](https://puneetpanwar.com/wp-content/uploads/2021/09/python_path_1.jpg)
(b). Open file location and go to properties of Python application, entry in the target tab shows the installation directory of Python interpreter.
![](https://puneetpanwar.com/wp-content/uploads/2021/09/python_path_2-1.jpg)
Step 2: Change Spyder’s default Python interpreter
Open Spyder IDE and go to Tools –> Preferences –> Python Interpreter –> Select “use the following Python interpreter” –> add python.exe path –> apply
![](https://puneetpanwar.com/wp-content/uploads/2021/09/change_spyder_interpreter-1024x546.jpg)
Step 3: Install spyder-kernels
Spyder requires a supported version of the spyder-kernels
package to be present in the working environment you want to run your console in. If this package is not installed, you will see the following error message:
![](https://puneetpanwar.com/wp-content/uploads/2021/09/common-illnesses-kernel-version.png)
To install spyder-kernels, open command prompt and type the command suggested in error message.
![](https://puneetpanwar.com/wp-content/uploads/2021/09/spyder-kernels.jpg)
Restart Spyder application to implement the changes. After performing these step, i think you are ready to go.
I hope someone will find it useful, Thanks for reading