通过Anaconda安装时出现Caffe错误

时间:2020-10-07 02:15:47

标签: python anaconda caffe pycaffe

我正在努力在Windows 10的Anaconda上安装和导入Caffe。我真的不知道为什么这么著名的深度学习软件包很难安装!

首先,我尝试安装它。在巨大的困难下,我进行了以下操作,最后,安装成功了:

conda create -n caffe python=3.7
// activate the environment REM Depending on your conda version you may have to use activate Caffe

conda activate caffe
// add the anaconda channel to resolve all dependencies

conda config --add channels anaconda
// Install caffe with cuda support or install caffe-cpu if you do not want CUDA support

conda install caffe-cpu -c willyd

现在,仅尝试导入caffe,我收到此错误:

>>> import caffe
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\caffe\lib\site-packages\caffe\__init__.py", line 1, in <module>
    from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, AdaDeltaSolver, AdamSolver, NCCL, Timer
  File "C:\Users\user\AppData\Local\Continuum\anaconda3\envs\caffe\lib\site-packages\caffe\pycaffe.py", line 13, in <module>
    from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: DLL load failed: The specified module could not be found.

我该怎么办?如何解决?

0 个答案:

没有答案