新建conda虚拟环境,用pip导入第三方库,用pyinstaller打包py文件,出现报错

报错
ImportError: Unable to import required dependencies:
numpy: Error importing numpy: you should not try to import numpy from
its source directory; please exit the numpy source tree, and relaunch
your python interpreter from there.
[17248] Failed to execute script 'main' due to unhandled exception!
无法解决,请问这是什么原因
文章讲述了用户在创建conda虚拟环境后,尝试使用pip导入第三方库并用PyInstaller打包.py文件时遇到的ImportError,特别提到不应从numpy源目录导入,且提供了解决方案的提示。

2万+

被折叠的 条评论
为什么被折叠?



