Python中文
首页
教程
问答
标签
搜索
登录
注册
AWS AWS.push importorror:Ubuntu中没有名为boto的模块
回答此问题可获得
20
贡献值,回答如果被采纳可获得
50
分。
<p>我正试图遵循本教程: <a href="http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Ruby_rails.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Ruby_rails.html</a></p> <p>为了在带有Ubuntu的AWS中部署Ruby on Rails应用程序。</p> <p>一切正常(我可以在本地运行我的应用程序),直到最后一步。当我运行aws.push时,会出现下一个错误。</p> <pre><code> roberto@ubuntu:~/dev/myapp$ git aws.push Traceback (most recent call last): File ".git/AWSDevTools/aws.elasticbeanstalk.push", line 21, in <module> from aws.dev_tools import * File "/home/roberto/dev/myapp/.git/AWSDevTools/aws/dev_tools.py", line 5, in <module> import boto ImportError: No module named boto </code></pre> <p>我已经阅读了这篇文章<a href="https://stackoverflow.com/questions/23297719/git-aws-push-no-module-named-boto">git aws.push: No module named boto</a>并运行:</p> <pre><code>pip install boto pip freeze > reqIuirements.txt git add . git commit -m "Added boto" git aws.push </code></pre> <p>但结果还是一样。</p> <p><strong>更新:</strong> 我认为这个问题与我的python版本有关。 当我运行<code>which python</code>时,我得到/usr/bin/python。如果我打开这个文件夹,我会看到python,python2,python2.7,python3,python3.4。</p> <p>当我运行<code>python</code>时,我得到:</p> <pre><code>Python 2.7.6 (default, Mar 22 2014, 22:59:56) [GCC 4.8.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> </code></pre> <p>我不知道该怎么办。</p> <p>问题是第一个boto安装由于权限问题而无法运行,我没有意识到。我跑了<code>sudo pip install boto</code>,这次一切都很顺利。</p>
0 条评论
分类:
Python问答
请先
登录
后评论
默认排序
时间排序
1 个回答
匿名
1天前
擅长:python、mysql、java
<p>如果在没有安装pip的OSX上:</p> <pre><code>sudo easy_install pip sudo pip install boto </code></pre>
请先
登录
后评论
针对此问题:
更多的回答
关注
89
关注
收藏
1
收藏,
216
浏览
网友 提问于 2天前
相关Python问题
plt.savefig不会覆盖现有文件
8 回答
plt.savefig不保存图像
2 回答
plt.savefig在jupyter笔记本中不起作用
5 回答
plt.savefig在从另一个fi调用时停止工作
4 回答
plt.savefig在调用plt.show之前保存空数字
10 回答
plt.save不创建png文件
5 回答
plt.scatter overlay分类数据帧列
10 回答
Plt.Scatter:如何添加title、xlabel和ylab
8 回答
plt.scatter()绘图与Matplotlib中的plt.plot()绘图类似
6 回答
plt.scatter错误'NoneType'对象在成功运行后没有属性'sqrt'
5 回答
plt.set_title()中的标题字符串有误
5 回答
plt.show()
8 回答
plt.show()不在Jupyter笔记本上渲染任何内容
4 回答
plt.show()不打印plt.plot only plt.scatter
2 回答
plt.show()不显示三维散射图像
2 回答
plt.show()不显示任何内容
5 回答
plt.show()不显示数据,而是保留它供下一个图表使用(spyder)
6 回答
plt.show()使终端挂起
2 回答
plt.show()无法使用此代码
7 回答
plt.show()没有打开新的图形风
7 回答