在 Windows 7 x64 上安装 theano(无法导入名称 gof)
Installing theano on Windows 7 x64 (cannot import name gof)
我正在尝试在我的 Windows 7 x64 机器上安装 Theano。我已经按照大约 5 个不同的教程尝试正确安装它。其中一些在这些链接中:
http://deeplearning.net/software/theano/install_windows.html
在 Kaggle 网站上,我尝试了 Anaconda 和 WinPython 推荐...我已经尝试使用 Python 2.7 和 3.5...我做什么似乎并不重要;当我 运行
时,我不断收到以下错误
import theano
在我的 python 环境中:
...
^~~~~;mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/6.2.0/include/c++/cmath:1133:11: error: '::hypot' has not been declared\mod.cpp:1:/c++/math.h:36:0,
这是我第一次尝试导入 theano 时得到的结果。如果我在同一个会话中尝试第二次,我会得到
...
from theano import config, gof
ImportError: cannot import name gof
我发现 this other question on Whosebug 似乎我安装了旧版本的 Theano 导致了这个问题。我已经 运行
pip uninstall theano
并且不再安装。还有另一种方法可以卸载我丢失的它吗?还是我有其他问题?
我在这里解决了我自己的问题。如果其他人遇到此问题,我将执行以下操作来解决它
- 删除你能找到的所有 Theano 版本;
pip uninstall theano
、conda remove theano
,并在您的文件系统中搜索可能存在的 Theano 文件
- 我的机器上还有几个版本的 mingw。也删除所有这些;我从标准 window 卸载开始。我还能够在我的文件系统中找到另一个安装,它有一个单独的卸载包,我 运行.
- 完全按照 this link 第 2 post 的说明进行操作
我遇到了同样的问题:ImportError: cannot import name gof
对于 Windows 10 64 位,Python 2.7。我通过多次更新 conda 来解决,以确保没有更多更新。我运行:
- 康达更新康达
- conda 更新 --all
之后在Anaconda提示Python环境下shell,
- 导入 theano
我正在尝试在我的 Windows 7 x64 机器上安装 Theano。我已经按照大约 5 个不同的教程尝试正确安装它。其中一些在这些链接中:
http://deeplearning.net/software/theano/install_windows.html
在 Kaggle 网站上,我尝试了 Anaconda 和 WinPython 推荐...我已经尝试使用 Python 2.7 和 3.5...我做什么似乎并不重要;当我 运行
时,我不断收到以下错误import theano
在我的 python 环境中:
...
^~~~~;mingw-w64/x86_64-6.2.0-posix-seh-rt_v5-rev1/mingw64/lib/gcc/x86_64-w64-mingw32/6.2.0/include/c++/cmath:1133:11: error: '::hypot' has not been declared\mod.cpp:1:/c++/math.h:36:0,
这是我第一次尝试导入 theano 时得到的结果。如果我在同一个会话中尝试第二次,我会得到
...
from theano import config, gof
ImportError: cannot import name gof
我发现 this other question on Whosebug 似乎我安装了旧版本的 Theano 导致了这个问题。我已经 运行
pip uninstall theano
并且不再安装。还有另一种方法可以卸载我丢失的它吗?还是我有其他问题?
我在这里解决了我自己的问题。如果其他人遇到此问题,我将执行以下操作来解决它
- 删除你能找到的所有 Theano 版本;
pip uninstall theano
、conda remove theano
,并在您的文件系统中搜索可能存在的 Theano 文件 - 我的机器上还有几个版本的 mingw。也删除所有这些;我从标准 window 卸载开始。我还能够在我的文件系统中找到另一个安装,它有一个单独的卸载包,我 运行.
- 完全按照 this link 第 2 post 的说明进行操作
我遇到了同样的问题:ImportError: cannot import name gof 对于 Windows 10 64 位,Python 2.7。我通过多次更新 conda 来解决,以确保没有更多更新。我运行:
- 康达更新康达
- conda 更新 --all
之后在Anaconda提示Python环境下shell,
- 导入 theano