获取ImportError:无法在Wndows

时间:2016-04-06 07:25:05

标签: python windows numpy anaconda python-import

以前我没有遇到以下问题,昨天早上突然发生了!我试图更新numpy,我试图卸载它然后重新安装它,我也尝试安装新版本,但所有这些都给了我这个确切的错误。

以下是整个错误日志:

2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: Traceback (most recent call last):
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "T:\DIGITS-master\tools\parse_folder.py", line 8, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: import requests
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\site-packages\requests\__init__.py", line 58, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: from . import utils
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\site-packages\requests\utils.py", line 12, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: import cgi
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\cgi.py", line 50, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: import mimetools
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\mimetools.py", line 6, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: import tempfile
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\tempfile.py", line 32, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: import io as _io
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "T:\Caffe\Build\X64\RELEASE\pycaffe\caffe\io.py", line 1, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: import numpy as np
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\site-packages\numpy\__init__.py", line 180, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: from . import add_newdocs
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\site-packages\numpy\add_newdocs.py", line 13, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: from numpy.lib import add_newdoc
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\site-packages\numpy\lib\__init__.py", line 8, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: from .type_check import *
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\site-packages\numpy\lib\type_check.py", line 11, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: import numpy.core.numeric as _nx
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: File "L:\Anaconda2\lib\site-packages\numpy\core\__init__.py", line 14, in <module>
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: from . import multiarray
2016-04-06 10:36:57 [20160406-103655-657c] [WARNING] Parse Folder (train/val) unrecognized output: ImportError: cannot import name multiarray
2016-04-06 10:36:57 [20160406-103655-657c] [ERROR] Parse Folder (train/val) task failed with error code 1

基本上发生的事情是,我试图移植DIGITS,这是一个将Caffe整合到Windows中的深度学习前端。

首先,应用程序的一部分现在给我导入错误,过去工作得很好,应用程序的另一部分也没有工作,所以我试图解决这个问题,这是通过这种方式解决的,突然之间我意识到第一个工作部分不再起作用了!我甚至没有对这些部分代码做任何事情。

我需要补充一点,我不是Python开发人员,而且我对语言及其语法只有一些基本的了解。我正在进行的更改主要是替换路径字符串(将基于Linux的路径转换为等效的窗口路径,这里没什么特别的。)并打印和记录一些消息,这些都是。

我尝试过一些我之前提到的解决方案,但还没有运气。对于那些感兴趣的人是DIGITS group question

目前我在win7机器上使用Anaconda2-4.0.0-Windows-x86_64.exe(最新版本,我为所有用户安装了它。)。在那之前我有Anaconda2-2.4.1-Windows-x86_64.exe

0 个答案:

没有答案