ModuleNotFoundError:即使成功为AWS EBCLI安装了虚拟环境,也没有名为“ virtualenv”的模块因故障而退出

时间:2019-05-15 15:56:43

标签: python-3.x

我已经安装了AWS EB cli,并且尝试使用下面的“ $。\ aws-elastic-beanstalk-cli-setup \ scripts \ bundled_installer”运行捆绑的安装程序,这是我不确定要解决的错误。

1. Installing virtualenv
************************
Collecting virtualenv
  Using cached https://files.pythonhosted.org/packages/ca/ee/8375c01412abe6ff462ec80970e6bb1c4308724d4366d7519627c98691ab/virtualenv-16.6.0-py2.py3-none-any.whl
Installing collected packages: virtualenv
Successfully installed virtualenv-16.6.0

==============================================
II. Creating self-contained EBCLI installation
==============================================
Installing the EBCLI in C:\Users\xxcsds\.ebcli-virtual-env

******************************************
1. Creating exclusive virtualenv for EBCLI
******************************************

> Traceback (most recent call last):   File
> "c:\users\xxcsds\appdata\local\programs\python\python37\lib\runpy.py",
> line 193, in _run_module_as_main
>     "__main__", mod_spec)   File "c:\users\xxcsds\appdata\local\programs\python\python37\lib\runpy.py",
> line 85, in _run_code
>     exec(code, run_globals)   File "C:\aws-elastic-beanstalk-cli-setup\scripts\virtualenv\bin\virtualenv.exe\__main__.py",
> line 5, in <module> ModuleNotFoundError: No module named 'virtualenv'
> Exiting due to failure

3 个答案:

答案 0 :(得分:1)

我遇到了同样的问题。只是解决方法,但是您可以在虚拟环境like described here上安装AWS EBCLI。为我工作。

答案 1 :(得分:0)

我能够pip install awsebcli进入我正在工作的虚拟环境中,以使一切正常运行。

答案 2 :(得分:0)

这似乎是安装AWS EBCLI的错误

https://github.com/aws/aws-elastic-beanstalk-cli-setup/issues/19

使用以下命令

pip uninstall -y virtualenv
pip install virtualenv
python .\aws-elastic-beanstalk-cli-setup\scripts\ebcli_installer.py