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问题
如何在PyObj中使用respondsToSelector和performSelector
4 回答
如何在pyobj中停止线程
8 回答
如何在pyobj中生成线程
1 回答
如何在pyodbc中为记录集指定游标类型?
2 回答
如何在pyodbc中从用户处获取表名,同时避免SQL注入?
8 回答
如何在pyodbc中使用executemany运行多个SELECT查询
2 回答
如何在pyodbc中同时在n个游标上并行运行n个进程?
2 回答
如何在pyodbc中控制连接池的大小?
3 回答
如何在pyodbc中自动调用fetchall()而不进行异常处理?
2 回答
如何在pyODBC查询中参数化日期戳?
5 回答
如何在pyodbc输出转换器函数中解压sqlserver DATETIME?
3 回答
如何在pyodb中安装所有驱动程序
8 回答
如何在pyodb嵌套循环中调用不同的查询
2 回答
如何在pyomo.environ公司modu装置
10 回答
如何在Pyomoconstraints中建模逻辑或量词
9 回答
如何在Pyomo中为约束使用数组
5 回答
如何在pyomo中使用集和范围集的多级索引?
4 回答
如何在PYOMO中分配伪二进制变量
5 回答
如何在Pyomo中创建OR约束?
8 回答
如何在Pyomo中动态地将变量添加到列表中?
7 回答