Windows 下 AnacondaCE 安装 Theano 0.6.0rc3 问题
来源:互联网 发布:godaddy域名优惠 编辑:程序博客网 时间:2024/06/07 09:46
根据官网上介绍的通过 AnacondaCE 最简单的安装方法安装theano环境,遇到以下问题。这里根据我们的情况给予解决方案。
问题1
Windows installerfor Theano on AnacondaCE for Windows是无法正常安装的。只能手动安装。按照官网上描述。其installer程序帮我们做了以下事。
- Copy MinGW runtime DLLs into C:\\Anaconda\\, so they are in the PATH;
- Call pipinstalltheano, installing the latest released version;
- Set up a default configuration file for Theano,theanorc_default.txt, and set it up as your.theanorc.txt if itdoes not exist. It contains:
[blas]
ldflags =
[gcc]
cxxflags = -IC:\MinGW\include
问题2
按照网上的3大步骤安装好,并配置好.theanorc.txt后,测试,运行命令 import theano 出现以下提示:
WARNING (theano.configdefaults): g++ not detected ! Theano will be unable to execute optimized C-implementations (for both CPU and GPU) and will default to Python implementations. Performance will be severely degraded.
从字面理解,开始以为是MinGW的GCC没配置好,于是重新设置系统变量path 的c:/Anaconda/MinGW/bin 和lib。但是多次尝试无效。后分析了下,可能是机器上同时装了cygwin和MinGW,会不会是这两都有gcc和g++,两个gcc有冲突或python认的是cygwin的g++,于是去掉windows系统环境变量的cygwin/bin参量,重启机器再次运行,OK,以上的问题解决了。但是又产生以下问题。(好事多磨)
问题3
C:\Users\Administrator\AppData\Local\Theano\compiledir_Windows-7-6.1.7601-SP1-x86_Family_18_Model_1_Stepping_0_AuthenticAMD-2.7.5-32\lazylinker_ext\mod.cpp:457:84: error: 'calloc' cannot be used as a functionnject*, PyObject*)':ze_t*, const char*)':
多班分析。应该是gcc编译问题。多半是下载的最新版MinGW和Anaconda中的MinGW版本冲突问题。因此去掉.theanorc.txt文件中的以下这句
[gcc]
cxxflags= -IC:\MinGW\include
删除拷贝到Anaconda目录下的MinGW的DLL文件。
输入 import theano
顺利执行!
- Windows 下 AnacondaCE 安装 Theano 0.6.0rc3 问题
- windows下安装theano
- windows下安装theano
- windows 下安装theano
- Theano 在windows下安装
- windows下theano安装教程
- windows下python3,Theano安装
- Windows7 下安装Theano (Install Theano in Windows 7)
- windows xp 环境下安装theano
- Windows下Theano安装和配置
- theano在windows下的安装
- theano在windows下安装的若干问题
- Theano在windows下的正确安装、会出现的问题及解决方法
- Windows安装Theano
- windows安装theano
- Windows 安装theano
- 深度学习python库安装经验,Windows下安装Anaconda3 pycharm tensorflow keras theano中遇到的问题
- windows xp 32 win7下成功安装theano
- 【live555】MediaSink类分析
- 黑马程序员_008_Map 的两种取出方式
- Error And Bias
- Oracle数据类型浅析:varchar2
- 睡眠--TASK_INTERRUPTIBLE and TASK_UNINTERRUPTIBLE
- Windows 下 AnacondaCE 安装 Theano 0.6.0rc3 问题
- Navicat for Oracle的安装配置过程
- Oracle中的Raw类型
- 黑马程序员_009_TreeSet的两种排序方式和HashSet保持元素唯一性的方式
- 使用html5 video定制视频
- mybatis_SQL映射(4)_鉴别器
- javascript知识点备忘
- 强大的命令行管理工具——WMIC
- 超炫的左右滑动效果 - ViewPager的使用