更新时间:2021-12-30 00:10:03
如果其他人遇到此问题,这是解决问题的方法.问题出在以前的Python 3.7安装中,一些剩余目录在卸载过程中没有被删除.
In case anyone else comes across this, here's the solution to the problem. The issue was with some left-over directories from a previous installation of Python 3.7 that didn't get deleted during the uninstall process.
File "C:\Users\i7\AppData\Roaming\Python\Python37\site-packages\numpy\__init__.py",
一旦我删除了该目录(C:\Users\i7\AppData\Roaming\Python\Python37
),它就可以正常工作了.感谢如何发表评论在Windows 10上使用python 3.7的anaconda软件包?通过@FlyingTeller
Once I deleted this directory (C:\Users\i7\AppData\Roaming\Python\Python37
) it all worked. Credit goes to a comment in How to use anaconda packages for python 3.7 on windows 10? by @FlyingTeller