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環境執行第一步的命令