我运行的是预先安装了tensorflow的awsami实例。但是,它不是SciPy自带的,所以我不得不安装它。我已经成功地用yum install scipy
安装了它
udacity]$ sudo yum install scipy
Loaded plugins: dkms-build-requires, priorities, update-motd, upgrade-helper
2 packages excluded due to repository priority protections
Package python26-scipy-0.12.1-1.8.amzn1.x86_64 already installed and latest version
Nothing to do
但是当我运行程序的时候我得到了这个
^{pr2}$这与前一篇文章here有关
显示Python版本:
[ec2-user@ip-172-31-28-195 ~]$ which python
/usr/bin/python
[ec2-user@ip-172-31-28-195 ~]$ python -V
Python 2.7.10
更新
SciPy显示的是python2.6,因此我尝试了以下操作,但是现在发现iPython有一个错误,尽管我已经安装了iPython。是另一个版本问题吗?在
[ec2-user@ip-172-31-28-195 udacity]$ sudo yum install ipython
Loaded plugins: dkms-build-requires, priorities, update-motd, upgrade-helper
amzn-graphics/latest | 2.1 kB 00:00
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
2 packages excluded due to repository priority protections
No package ipython available.
Error: Nothing to do
[ec2-user@ip-172-31-28-195 udacity]$ python2.6 assignment_1.py
Traceback (most recent call last):
File "assignment_1.py", line 6, in <module>
from IPython.display import display, Image
ImportError: No module named IPython.display
版本:
[ec2-user@ip-172-31-28-195 udacity]$ ipython --version
4.1.2
目前没有回答
相关问题 更多 >
编程相关推荐