以某种方式无法将软件包导入Python。例如麻木
我安装了numpy,例如:pip3 install numpy
,它可以正常工作,并且我将目录附加了
/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages
通过sys命令。
网站包和numpy目录中有__init__.py
(带双下划线)文档。
/Users/Ben10/Desktop/Code_Ordner/PyCharm_Projekte/Anfragen/venv/bin/python /Users/Ben10/Desktop/Code_Ordner/PyCharm_Projekte/Anfragen/probieren/diesdas.py
Traceback (most recent call last):
File "/Users/Ben10/Desktop/Code_Ordner/PyCharm_Projekte/Anfragen/probieren/diesdas.py", line 14, in <module>
import numpy
ModuleNotFoundError: No module named 'numpy'
Process finished with exit code 1