我是Python的新手,我不了解这个主题的许多其他答案(或者说,解决方案的建议),所以如果有人能用简单的术语解释如何解决,我将不胜感激我尝试在PyCharm中导入NumPy,matplotlib或其他包时出错:
/Library/Frameworks/Python.framework/Versions/3.4/bin/python3.4 "/Users/MyName/PycharmProjects/Learning/Rosalind Learning/Early Practice.py"
Traceback (most recent call last):
File "/Users/MyName/PycharmProjects/Learning/Rosalind Learning/Early Practice.py", line 3, in <module>
import numpy as np
ImportError: No module named 'numpy'
答案 0 :(得分:1)
这里的问题是计算机无法识别NumPy。这可能有多种原因:
您没有安装NumPy。如果是这种情况,请执行以下步骤: 在Debian / Ubuntu上运行:
aptitude install python-numpy
在Windows上,从http://sourceforge.net/projects/numpy/files/NumPy/