我正在安装许多python包
pip install -r requirements.txt -t lib
我还创建了 init 文件 但是我遇到这样的错误
>>> import libs
>>> import libs.numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "libs/numpy/__init__.py", line 151, in <module>
from .testing import Tester, _numpy_tester
File "libs/numpy/testing/__init__.py", line 12, in <module>
from . import decorators as dec
File "libs/numpy/testing/decorators.py", line 6, in <module>
from .nose_tools.decorators import *
File "libs/numpy/testing/nose_tools/decorators.py", line 20, in <module>
from .utils import SkipTest, assert_warns
File "libs/numpy/testing/nose_tools/utils.py", line 18, in <module>
from numpy.core import(
ImportError: cannot import name isnat
>>>
>>> import libs.numpy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "libs/numpy/__init__.py", line 142, in <module>
from . import add_newdocs
ImportError: cannot import name add_newdocs
我无法导入任何软件包。有依赖性问题吗?