Anaconda 安装 theano填坑

Anaconda 安装 theano填坑:g++ not available, if using conda: `conda install m2w64-toolchain问题

在学习tensorflow的时候,要了解theano,于是便安装Theao,却遇到了坑

g++ not available, if using conda: `conda install m2w64-toolchain

1.先看一下自己的环境是否有mingw libpython这两个包在这里插入图片描述
一般是没有才造出的,或者版本不匹配

于是按照它提示,
2.对应的命令行环境下,输入

conda install m2w64-toolchain

或者

conda install mingw libpython

发现安装的贼慢!!!
3.修改conda下载安装源并删除默认 -default 行
注意,第三个命令必须打!!!,才能找到 m2w64-toolchain


conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
conda config --set show_channel_urls yes

删除conda下载源的配置文件中的 -default 行
直接在自己的安装conda的盘搜:.condarc
在这里插入图片描述
用Notepad++打开,删除 -default
在这里插入图片描述
重复步骤2,安装对应的模块,发现下载速度飞起!!!

测试是否安装成功

在这里插入图片描述

注意!!!!!如果你有多个python环境,你必须在你安装的theano(比如我的是学习tensorflow的python环境)的那个python环境执行第一步的命令

参考博客:https://blog.csdn.net/liyebei/article/details/73477249

发布了50 篇原创文章 · 获赞 24 · 访问量 2412

猜你喜欢

转载自blog.csdn.net/qq_44861675/article/details/104240751