theano import error (win10 python2.7)
2017-06-11 00:00
507 查看
因为项目需要,在win10-64位电脑上配置theano.
但是一直有 import error的错误,找不到解决方法。
作为一个python新手,实在搞不定,请大家不吝赐教!小女子不胜感激!
按照网上的教程,安装了anaconda2, 版本是4.2.0;
用
修改了系统的环境变量如下:
在系统变量中添加了PYTHONPATH 变量值为 E:AnacondaLibsite-packagestheano
在cmd窗口的起始目录下,新建了 .theanorc.txt 文件(按照教程来的)
在cmd窗口里输入
在cmd中打开python,输入:import theano 之后出现错误提示信息:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named theano
然后我在Spyder的Ipython console中输入:import theano
出现了不一样的import error:
Traceback (most recent call last):
File "<ipython-input-1-3397704bd624>", line 1, in <module>
File "E:Anacondalibsite-packagestheano__init__.py", line 66, in <module>
File "E:Anacondalibsite-packagestheanocompile__init__.py", line 10, in <module>
File "E:Anacondalibsite-packagestheanocompilefunction_module.py", line 18, in <module>
ImportError: cannot import name gof
如图:
有人说可能是存在多个版本的theano,但我只安装过这个版本。
用pip uninstall theano卸载了之后,又pip install theano,还是没有解决这个问题。
有人说是因为有cygwin和Mingw,cygwin的环境变量path还在mingw之前,可我并没有cygwin这个包。
总之试了一些方法,仍然解决不了我的问题。
不知该怎么解决,希望大家给些帮助,谢谢!
theano import error (win10 python2.7) >>
python
这个答案描述的挺清楚的:
http://www.goodpm.net/postreply/python/1010000008982858/theanoimporterrorwin10python27.html
但是一直有 import error的错误,找不到解决方法。
作为一个python新手,实在搞不定,请大家不吝赐教!小女子不胜感激!
按照网上的教程,安装了anaconda2, 版本是4.2.0;
用
conda install mingw libpython安装了mingw libpython;mingw版本是4.7,libpython版本是2.0
修改了系统的环境变量如下:
在系统变量中添加了PYTHONPATH 变量值为 E:AnacondaLibsite-packagestheano
在cmd窗口的起始目录下,新建了 .theanorc.txt 文件(按照教程来的)
在cmd窗口里输入
pip install theano安装了theano,版本是0.9.0
在cmd中打开python,输入:import theano 之后出现错误提示信息:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named theano
然后我在Spyder的Ipython console中输入:import theano
出现了不一样的import error:
Traceback (most recent call last):
File "<ipython-input-1-3397704bd624>", line 1, in <module>
import theano
File "E:Anacondalibsite-packagestheano__init__.py", line 66, in <module>
from theano.compile import (
File "E:Anacondalibsite-packagestheanocompile__init__.py", line 10, in <module>
from theano.compile.function_module import *
File "E:Anacondalibsite-packagestheanocompilefunction_module.py", line 18, in <module>
from theano import config, gof
ImportError: cannot import name gof
如图:
有人说可能是存在多个版本的theano,但我只安装过这个版本。
用pip uninstall theano卸载了之后,又pip install theano,还是没有解决这个问题。
有人说是因为有cygwin和Mingw,cygwin的环境变量path还在mingw之前,可我并没有cygwin这个包。
总之试了一些方法,仍然解决不了我的问题。
不知该怎么解决,希望大家给些帮助,谢谢!
theano import error (win10 python2.7) >>
python
这个答案描述的挺清楚的:
http://www.goodpm.net/postreply/python/1010000008982858/theanoimporterrorwin10python27.html
相关文章推荐
- python安装配置Theano ImportError:cannot import name 'configparser'
- Python Theano ValueError: y_i value out of bounds
- python error python version 2.7 required,which was not found in the registry
- Error: [Errno 10013](win10系统下python2.7自带CGIHTTPServer服务开启问题)
- ImportError: No module named _tkinter, please install the python-tk package ubuntu运行tkinter错误
- 安装python2.7(windows),wxpython: import wx:ImportError:DLL load failed:%1不是有效的Win32应用程序
- Python Theano TypeError: Cannot convert Type TensorType(float64, vector) (of Variable Subtensor{int64:int64:}.0) into Type TensorType(float64, matrix)
- ImportError: No module named _tkinter, please install the python-tk package
- Python 的PIL,可以解决ImportError The _imagingft C module is not installed
- 【环境配置】Win10+Python3.5+Keras+Theano/TensorFlow
- ImportError: /usr/local/lib/python2.7/dist-packages/torch/lib/libgomp.so.1: version `GOMP_4.0' not f
- windowXP下解决python2.7+Django-1.3.1中:importError:no module named django.core
- python2.7中没有zlib库的解决方案(zipimport.ZipImportError: can't decompress data; zlib not available)
- ImportError: No module named theano
- ImportError: No module named _tkinter, please install the python-tk package
- python PIL ImportError: The _imagingft C module is not installed
- python2.7中没有zlib库的解决方案(zipimport.ZipImportError: can't decompress data; zlib not available)
- Theano / Numpy, "ImportError: libatlas.so.3gf: cannot open shared object file"
- OpenCV3.1 + Python2.7 error "DLL load failed: The specified module could not be found"
- 安装python2.7(windows),wxpython: import wx:ImportError:DLL load failed:%1不是有效的Win32应用程序