Anaconda virtual environment configuration Python library and Spyder compiler

This article introduces the installation of third-party libraries for the virtual environment of Python in Anaconda and supporting Spyder and other Software‘s approach. In the article How to create an Anaconda virtual Python environment, we introduced the method of creating, using and deleting the Python virtual environment in the Anaconda environment; and after creating the […]

What should I do if the Spyder version upgrade fails in the Anaconda virtual environment?

This article describes various ways to update Spyder software versions in Anaconda for a virtual environment with an older version of Python method. First, let’s take a look at the requirements to be implemented in this article. According to the method mentioned in the article # Anaconda virtual environment to install Python library and Spyder […]

[Solved] Spyder drawing error

The Spyder compilation software I use Error message Figures now render in the Plots pane by default. To make them also appear inline in the Console, uncheck “Mute Inline Plotting” under the Plots pane options menu. Translation Graphics are now rendered in the Plot pane by default. To make them also appear inline in the […]

[Solved] Spyder crashes and fails to start the solution. UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa9 in position 226…

Spyder version number [Spyder5.1.5 Python 3.9.12] 1. The phenomenon of flashback In the morning, I was still using spyder to analyze the data. When I turned on the computer in the afternoon, I found that spyder flashed back. I used anaconda’s prompt to start it, and found the following error: (base) PS C:\Users\LittleSun> spyder Traceback […]

[Solved] The spyder/conda installation package reports an error: conda info could not be constructed. KeyError: ‘pkgs_dirs’

Open conda, and the error characteristics are as follows: Error message Open powershell, enter conda info and report an error. (base) PS C:\Users\Administrator> conda info # >>>>>>>>>>>>>>>>>>>>>> ERROR REPORT <<<<<<<<<<<<<<<<<<<<<< Traceback (most recent call last): File “C:\ProgramData\anaconda3\lib\site-packages\conda\exceptions.py”, line 1082, in __call__ return func(*args, **kwargs) File “C:\ProgramData\anaconda3\lib\site-packages\conda\cli\main.py”, line 87, in _main exit_code = do_call(args, p) File […]

[Solved] spyder5.1.5 input() function running error

After reinstalling spyder5.1.5 for some reason, the program that could run before reported the following error: TypeError: _show_prompt() got an unexpected keyword argument ‘separator’, and a dialog box popped up saying that it was an internal error of spyder. I checked some information on the Internet It is said to be a bug of spyder […]

[Solved] [Anaconda] Easily solve the problem that Spyder can’t run Python code due to kernel error caused by pandas numexpr version mismatch

Problem description An error ocurred while starting the kernel d:\Program\Anaconda3\lib\site?packages\pandas\compat_optional.py:138: UserWarning: Pandas requires version ‘2.7.0’ or newer of ‘numexpr’ (version ‘2.6.9’ currently installed). warnings.warn(msg, UserWarning) Problem Analysis Pandas depends on the numexpr package, and the version of the package is lower than 2.7.0, which causes the system to report an error. Solution pip install numexpr […]

[Solved] A solution for Spyder not opening

Solution for Spyder not opening After Ben Xiaobai installed shap, gcForest and other libraries today, I don’t know what happened, but I couldn’t open Spyder when I came back from lunch. Originally wanted to reinstall anaconda, but then searched the Internet for these two blogs and successfully solved my problem! Haha, let’s record it briefly […]