python import numpy 出错_引用numpy出错详解及解决方法

numpy出错 解决方案

Problem: how to import numpy in subdirectory? Import error of numpy within subfolder.

错误信息:

>>> import numpy

Traceback (most recent call last):

File "", line 1, in

File "/usr/local/lib/python2.7/dist-packages/numpy/__init__.py", line 153, in

from . import add_newdocs

File "/usr/local/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 13, in

from numpy.lib import add_newdoc

File "/usr/local/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 18, in

from .polynomial import *

File "/usr/local/lib/python2.7/dist-packages/numpy/lib/polynomial.py", line 19, in

from numpy.linalg import eigvals, lstsq, inv

File "/usr/local/lib/python2.7/dist-packages/numpy/linalg/__init__.py", line 50, in

from .linalg import *

File "/usr/local/lib/python2.7/dist-packages/numpy/linalg/li

你可能感兴趣的:(python,import,numpy,出错)