Python 2.7 导入theano获取非法指令

Python 2.7 导入theano获取非法指令,python-2.7,ubuntu-12.04,theano,Python 2.7,Ubuntu 12.04,Theano,在安装了最新版本,甚至卸载了Theano之后,我仍然从“导入Theano”中得到“非法指令”,我在ubuntu 12.04上 zhge@phx-r-ins1-7773:~$ sudo pip uninstall Theano Uninstalling Theano: Proceed (y/n)? y Successfully uninstalled Theano zhge@phx-r-ins1-7773:~$ python Python 2.7.3 (default, Sep 26 2013

在安装了最新版本,甚至卸载了Theano之后,我仍然从“导入Theano”中得到“非法指令”,我在ubuntu 12.04上

zhge@phx-r-ins1-7773:~$ sudo pip uninstall Theano
Uninstalling Theano:
Proceed (y/n)? y
  Successfully uninstalled Theano
zhge@phx-r-ins1-7773:~$ python
Python 2.7.3 (default, Sep 26 2013, 20:03:06)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import theano
Illegal instruction
zhge@phx-r-ins1-7773:~$

当您使用相同的
.local
目录从一台计算机移动到另一台计算机时,可能会发生这种情况。以下内容对我有用:


首先删除存储一些theano编译文件的
~/.theano
。然后通过pip卸载theano重新安装theano;pip安装--用户theano。由于某种原因,它还修复了gensim安装(在导入时显示相同的错误)。可能gensim会在可能的情况下导入theano?

我如何在两台不同的计算机上使用相同的.local目录?