theano import error (win10 python2.7)
因为项目需要,在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)的更多相关文章
- MITMF使用import error
安装问题: 1.ubuntu 14.04.安装使用capstone时候,提示出现import error:ERROR: fail to load the dynamic library. 解决方法:将 ...
- [原]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 ...
- 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 - ...
- 关于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也正常启动, ...
- 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 ...
- Import Error:cannot import name main解决方案
在Ubuntu上安装软件,不小心升级了pip,导致使用时报错如下: Import Error:cannot import name main 后来发现是因为将pip更新为10.0.0后库里面的函数有所 ...
- Eclipse插件pydev编辑.py文件时报错:unresolved import error.解决办法
在同一个包中import还报unresolved import error.感觉很奇怪,原来需要把当前的包也要添加到System libs中
- python 3.5 import theano ::hypot error
# win10 , mingw(nuwen,g++ 6.3), python 3.5 , 描述: import theano 时生成动态的 mod.cpp ,然后编译库的时候报 ::hypot 未定义 ...
- 反汇编工具capstone安装后import error
使用sudo pip install capstone后,使用如下代码import时出现error. from capstone import * 错误信息: File "/usr/loca ...
随机推荐
- bzoj5157: [Tjoi2014]上升子序列(树状数组LIS)
5157: [Tjoi2014]上升子序列 题目:传送门 题解: 学一下nlogn的树状数组求最长上生子序列就ok(%爆大佬) 离散化之后,用一个数组记录一下,直接树状数组做 吐槽:妈耶...一开始不 ...
- JS数组去重 包含去除多个 NaN
Array.prototype.uniq = function () { var arr = []; var flag = true; this.forEach(function(item) { ...
- springboot shiro 多realm配置认证、授权
shiro进行登录认证和权限管理的实现.其中需求涉及使用两个角色分别是:门店,公司.现在要两者实现分开登录.即需要两个Realm——MyShiroRealmSHOP和MyShiroRealmCOMPA ...
- sicily 1146 采药 (动规)
打代码不走心会掉坑里的.. 下边是代码: //1146.采药 //t表示总时间 //m表示草药数 //w表示采药时间 //v表示草药价值 #include <iostream> using ...
- Win7 利用批处理文件结束进程
@echo offtitle 结束进程正在进行... ::结束进程TeamViewer.exewmic process where name="TeamViewer.exe" ca ...
- Spring深入浅出(三)XML方式以及注解的方式操作IOC
在日常的开发过程中,我们把程序分为3层:Controller层,Service层,DAO层.Controller类似于Servlet,也就是MVC中的控制层. 调用的顺序是: Controller层调 ...
- mysql索引的注意事项
索引的优点 大大加快数据的查询速度 使用分组和排序进行数据查询时,可以显著减少查询时分组和排序的时间 创建唯一索引,能够保证数据库表中每一行数据的唯一性 在实现数据的参考完整性方面,可以加速表和表之间 ...
- ACM-ICPC 2018 徐州赛区网络预赛 H. Ryuji doesn't want to study(树状数组)
Output For each question, output one line with one integer represent the answer. 样例输入 5 3 1 2 3 4 5 ...
- 优动漫PAINT绘制紫阳花教程
紫阳花是插画.漫画很常见的绘画画材.这个教程非常好懂.而且很方便就能绘制出漂亮的效果.因为这种花一个月内能变化三种颜色,故而人们赋予它的花语是善变.背叛. 教程是简单,呃.... 没有优动漫PAINT ...
- layer弹窗
layer.alert(content, options, yes) - 普通信息框 它的弹出似乎显得有些高调,一般用于对用户造成比较强烈的关注,类似系统alert,但却比alert更灵便.它的参数是 ...