因为项目需要,在win10-64位电脑上配置theano.
但是一直有 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

theano import error (win10 python2.7)的更多相关文章

  1. MITMF使用import error

    安装问题: 1.ubuntu 14.04.安装使用capstone时候,提示出现import error:ERROR: fail to load the dynamic library. 解决方法:将 ...

  2. [原]openstack-kilo--issue(十九) ImportError: Could not import settings 'openstack_dashboard.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named main

    查看此问题的时候请先查看 这个问题包含在(十)中,此篇只是从(十)中分离出来 openstack-kilo--issue(十)ERROR: openstack Unable to establish ...

  3. Flask and uWSGI - unable to load app 0 (mountpoint='') (callable not found or import error)

    Here is my directory structure: -/path/to/folder/run.py -|app -|__init__.py -|views.py -|templates - ...

  4. 关于ImportError: libssl.so.10: cannot open shared object file: No such file or directory unable to load app 0 (mountpoint='') (callable not found or import error)

    一.问题描述 在亚马逊云服务器使用Nginx+uwsgi部署django项目时,项目可以使用python manage.py runserver正常运行,uwsgi测试也没问题,Nginx也正常启动, ...

  5. uwsgi启动Django项目时:unable to load app 0 (mountpoint='') (callable not found or import error) *** no app loaded. going in full dynamic mode ***

    说起来有点坑 用命令都能正常启动,但是用配置文件就是不行 提示 unable to load app (mountpoint='') (callable not found or import err ...

  6. Import Error:cannot import name main解决方案

    在Ubuntu上安装软件,不小心升级了pip,导致使用时报错如下: Import Error:cannot import name main 后来发现是因为将pip更新为10.0.0后库里面的函数有所 ...

  7. Eclipse插件pydev编辑.py文件时报错:unresolved import error.解决办法

    在同一个包中import还报unresolved import error.感觉很奇怪,原来需要把当前的包也要添加到System libs中  

  8. python 3.5 import theano ::hypot error

    # win10 , mingw(nuwen,g++ 6.3), python 3.5 , 描述: import theano 时生成动态的 mod.cpp ,然后编译库的时候报 ::hypot 未定义 ...

  9. 反汇编工具capstone安装后import error

    使用sudo pip install capstone后,使用如下代码import时出现error. from capstone import * 错误信息: File "/usr/loca ...

随机推荐

  1. pip安装selenium时提示Unknown or unsupported command 'install'

    安装流程: 1.安装Python34 2.安装pip 下载setuptoos并安装,然后输入:easy_install pip 然后 配置path:C:\Python34\Scripts 3安装sel ...

  2. 30个php操作redis经常用法代码样例

    这篇文章主要介绍了30个php操作redis经常用法代码样例,本文事实上不止30个方法,能够操作string类型.list类型和set类型的数据,须要的朋友能够參考下 redis的操作非常多的,曾经看 ...

  3. bzoj4868: [Shoi2017]期末考试(三分法)

    4868: [Shoi2017]期末考试 题目:传送门 题解: Get到一个新姿势...三分法 一开始百度百科的时候下了一跳...中国...的根??? 学懂了之后其实运用起来就根二分差不多啊,不过证明 ...

  4. 如何用Android studio生成正式签名的APK文件

    必须签名之后才可以发布到app商店中. 平时的调试的app都有默认的签名. 下面是生成带签名的APK的步骤: 1. Build 选择 Generate Signed APK 2. 弹出框,第一次选择C ...

  5. mysql读写分离原理及配置

    1 复制概述 Mysql内建的复制功能是构建大型,高性能应用程序的基础.将Mysql的数据分布到多个系统上去,这种分布的机制,是通过将Mysql的某一台主机的数据复制到其它主机(slaves)上,并重 ...

  6. unserialize反序列化错误的解决办法

    1. UTF-8编码解决反序列化出错问题 function mb_unserialize($serial_str) { $serial_str = str_replace("\r" ...

  7. swift语言点评十七-Designated Initializers and Convenience Initializers

    Swift defines two kinds of initializers for class types to help ensure all stored properties receive ...

  8. 洛谷P2770 航空路线问题 最小费用流

    Code: #include<cstdio> #include<iostream> #include<algorithm> #include<vector&g ...

  9. 路飞学城Python-Day10(practise)

    作业:现要求你写一个简单的员工信息增删该查程序,需求如下:当然此表在文件存储时可以这样表示1,Alex Li,22,13651054608,IT,2013-04-012,Jack Wang,28,13 ...

  10. iOS技术栈-Swift版

    在网上没找到基于Swift的技术栈介绍,或者技术已经不适用,所以自己画了一个,后面的博客中会重新整理基于Swfit的UI控件介绍和常用第三方库地图