caffe-ssd在create_data.sh的时候报错No module named numpy,可是我已经有了numpy啊! 20C

caffe-ssd在create_data.sh的时候报错No module named numpy,可是我已经有了numpy啊!
这是我报错的信息

Traceback (most recent call last):
  File "/home/pj/caffe-ssd/data/widerface/../../scripts/create_annoset.py", line 7, in <module>
    from caffe.proto import caffe_pb2
  File "/home/pj/caffe-ssd/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "/home/pj/caffe-ssd/python/caffe/pycaffe.py", line 11, in <module>
    import numpy as np
ImportError: No module named numpy
Traceback (most recent call last):
  File "/home/pj/caffe-ssd/data/widerface/../../scripts/create_annoset.py", line 7, in <module>
    from caffe.proto import caffe_pb2
  File "/home/pj/caffe-ssd/python/caffe/__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver
  File "/home/pj/caffe-ssd/python/caffe/pycaffe.py", line 11, in <module>
    import numpy as np
ImportError: No module named numpy

正常导入numpy是可以的

Python 3.5.2 (default, Nov 12 2018, 13:43:14) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> 

~/.bashrc 中的文件导入了caffe-ssd的python路径

export PYTHONPATH=~/caffe-ssd/python:$PYTHONPATH

1个回答

qq_43068488
pclose 我是有Numpy的
6 个月之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!