卸载高版本anaconda后再重装低版本anaconda遇到各种问题,真是吐血!
(一)jupyter notebook打不开
anaconda高版本卸载后,得把C:\Users\Administrator里面anaconda相关的文件删除干净后再安装低版本的anaconda。
(二)打开jupyter notebook后,又出现启动错误,ImportError: DLL load failed while importing win32api: 找不到指定的模块。
(1)pip install pywin32
(2)再找到Scripts文件,输入cmd,运行python pywin32_postinstall.py -install
(三)又出现启动错误Kernal Error - FileNotFoundError: [WinError 2] The system cannot find the file specified
(1)打开Anaconda Prompt.
(2) 输入python -m ipykernel install --user
(四)jupyter notebook终于可以启动了,但是import pandas as pd又报错How to solve AttributeError: module ‘numpy’ has no attribute ‘bool’?
(1)python -m pip uninstall numpy
(2)python -m pip install numpy==1.23.1