Skip to main content
 首页 » 编程设计

python之安装 awsebcli 时出错

2025年05月04日13soundcode

我尝试在 Windows 10 上安装 AWS EB CLI,但出现错误。 Python版本:3.5

我做了什么:

python -m pip install awsebcli 

我得到的:

...... 
copying lib3\yaml\__init__.py -> build\lib.win-amd64-3.5\yaml 
running build_ext 
creating build\temp.win-amd64-3.5 
creating build\temp.win-amd64-3.5\Release 
checking if libyaml is compilable 
error: [WinError 2] ═ The system cannot find the file specified 
---------------------------------------- 
Command ""C:\Program Files\Python 3.5\python.exe" -c "import setuptools, tokenize;__file__='C:\\Users\\Maksim\\AppData\\Local\\Temp\\pip-build-dkbpajst\\pyyaml\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\Maksim\AppData\Local\Temp\pip-y0knjbc5-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Maksim\AppData\Local\Temp\pip-build-dkbpajst\pyyaml 

有什么问题吗?

请您参考如下方法:

根据 the documentation : “EB CLI 与 Python 3.5 不兼容。”。
我在 python Python 3.4.3 上,它工作得很好。它也适用于 python 2.7.x