![numpy 가져오기 오류 - ImportError: mtrand라는 모듈이 없습니다.](https://linux55.com/image/98643/numpy%20%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0%20%EC%98%A4%EB%A5%98%20-%20ImportError%3A%20mtrand%EB%9D%BC%EB%8A%94%20%EB%AA%A8%EB%93%88%EC%9D%B4%20%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
소스에서 컴파일 numpy-1.11.2
하고 다음과 같이 설치했습니다. python setup.py install
Python에서 가져오려고 하면 다음 오류가 발생합니다.
python
Python 2.7.10 (default, Mar 14 2016, 14:17:09)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/site-packages/numpy-1.11.2-py2.7-linux-x86_64.egg/numpy/__init__.py", line 163, in <module>
from . import random
File "/usr/local/lib/python2.7/site-packages/numpy-1.11.2-py2.7-linux-x86_64.egg/numpy/random/__init__.py", line 99, in <module>
from mtrand import *
ImportError: No module named mtrand
여기에 문제가 있나요?
답변1
Python이 numpy 설치를 찾을 수 없습니다. apt-get install python-numpy를 시도해 볼 수 있습니까?