我试着遵循这个教程:rails.html
为了在AWS中使用Ubuntu部署应用程序。
一切顺利(我可以在本地运行我的应用程序),直到最后一步。当我运行aws.push时,我会得到下一个错误。
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我读过这篇文章git aws.push: No module named boto并运行了:
pip install boto
pip freeze > reqIuirements.txt
git add .
git commit -m "Added boto"
git aws.push但结果还是一样。
更新:--我认为这个问题与我的版本有关。当我运行which python时,我得到/usr/bin/python。如果我这样做,我会看到python,python2,python2.7,python3,python3.4。
当我运行python时,我得到:
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.
>>> 该怎么办呢。
问题是第一次安装boto时,由于权限问题,它没有工作,我也没有意识到。我运行了sudo pip install boto,这次一切都很顺利。
发布于 2014-04-30 09:47:17
见我本人在上面的评论。
发布于 2014-05-02 15:39:10
发生的情况是,在该特定的AWS教程(rails.html)中可用的eb命令行接口没有提供最新版本的boto。
当你做的时候
pip install boto您安装了https://github.com/boto/boto的最新版本,解决了这个问题。
发布于 2014-10-07 05:17:25
如果在OSX上安装了w/o pip:
sudo easy_install pip
sudo pip install botohttps://stackoverflow.com/questions/23365374
复制相似问题