报错内容
File "C:\Users\Administrator\miniconda3\lib\site-packages\conda\_vendor\appdirs.py", line 284, in _get_win_folder_with_pywin32
from win32com.shell import shellcon, shell
ImportError: DLL load failed while importing shell: 找不到指定的程序。
(大概是下面这样,不小心报错内容就没了)
解决步骤
现在Anaconda promot上查看pywin32的版本
conda list
可以看到 pywin32版本是302
然后cmd打开终端
输入
pip list
两个的版本不一致
然后在cmd下更新python中pywin32的版本
pip install pywin32==302
ok!