Python 安装后无法导入序号

Python 安装后无法导入序号,python,theano,Python,Theano,代码是这样的 $ sudo pip install theano Requirement already satisfied (use --upgrade to upgrade): theano in ./.local/lib/python2.7/site-packages Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.1 in /usr/lib/python2.7/dist-packages (f

代码是这样的

$ sudo pip install theano
Requirement already satisfied (use --upgrade to upgrade): theano in ./.local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): numpy>=1.7.1 in /usr/lib/python2.7/dist-packages (from theano)
Requirement already satisfied (use --upgrade to upgrade): scipy>=0.11 in /usr/lib/python2.7/dist-packages (from theano)
Requirement already satisfied (use --upgrade to upgrade): six>=1.9.0 in ./.local/lib/python2.7/site-packages/six-1.10.0-py2.7.egg (from theano)
Cleaning up...
~$ python -c"import theano;theano.test()"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: No module named theano
$sudo pip安装theano
已满足要求(使用--升级到升级):theano in./.local/lib/python2.7/site-packages
已满足要求(使用--升级到升级):numpy>=1.7.1 in/usr/lib/python2.7/dist-packages(来自theano)
已满足要求(使用--升级到升级):scipy>=0.11 in/usr/lib/python2.7/dist-packages(来自theano)
已满足要求(使用--升级到升级):六个>=1.9.0英寸/.local/lib/python2.7/site-packages/six-1.10.0-py2.7.egg(来自theano)
清理。。。
~$python-c“导入theano;theano.test()”
回溯(最近一次呼叫最后一次):
文件“”,第1行,在
ImportError:没有名为theano的模块

很抱歉,我仍然是这个站点和linux的新手。

这可能是由于python的两个版本,所以首先我删除了一个,并添加了python的路径,以获得由pip安装的软件包,但这仍然没有帮助。最后,我来到github下载并解包,经过大约30分钟的测试后,它没有出现错误,这意味着我成功地安装了它。

删除以前的版本后,我按照如下方式安装了它: ()


请发布
python--version
sudopython-mpipinstall theano
trump@trump-独角兽:~$python--2.7.6版~$sudo python-m pip为特朗普安装无[sudo]密码:已满足要求(使用--upgrade升级):theano in./.local/lib/python2.7/site-packages要求已满足(使用--升级到升级):numpy>=1.7.1 in/usr/lib/python2.7/dist-packages(从theano)要求已满足(使用--升级到升级):scipy>=0.11 in/usr/lib/python2.7/dist-packages(从theano)要求已满足(使用--升级到升级):six>=1.9.0 in./.local/lib/python2.7/site-packages/six-1.10.0-py2.7.egg(来自theano)清理…这些是输出,虽然输出中只有一个版本,但我仍然认为我的笔记本电脑中有两个版本(2.7和3.4),但我不知道如何处理。您也可以发布
python-c的输出吗“进口系统;打印系统路径“
?事实上,这也会产生影响!
git clone git://github.com/Theano/Theano.git
cd Theano
python setup.py develop --user
cd ..