.Jupyter notebook cannot connect to the required virtual environment after importing it, and the service fails to start. Consider the following situations:
1. It may be a problem with the pyzmq version, which needs to be uninstalled and reinstalled, and the version should be lower.
2. First activate the corresponding virtual environment: conda activate xxx
Enter a statement to view the jupyter library in the environment: jupyter --version
If there are some libraries in the list that are not installed, just use the pip command to install them directly: pip install xxx
3. Add your virtual environment to your system path.
4. If you change the virtual environment on your jupyter notebook, the following statement appears on the jupyter page:
The system cannot find the path specified
Reason: The user path has a Chinese name, and the Chinese encoding cannot be recognized, resulting in an error.
Solution: Change the user folder name to English
step:
Enter net user administrator /active:yes
According to this page, change the name to English (if you are prompted that this folder has been opened elsewhere when renaming, you need to restart the computer and enter the Administrator account to re-operate): change the user folder from Chinese to English
Finally cancel the super administrator: net user administrator /active:no