Unable to install aws-sam-cli using pip on Windows 10

会有一股神秘感。 提交于 2019-12-11 18:23:40

问题


I'm at my wits end.

I'm trying to install aws-sam-cli so that I can test AWS Lambda functions locally. I've followed all the tutorials I can find but I'm stuck.

I've installed docker and python 3.7 onto my local machine but when I try to install aws-sam-cli using:

pip install aws-sam-cli

I get the following error:

Could not find a version that satisfies the requirement pypiwin32==220; sys_platform == "win32" and python_version >= "3.6" (from docker>=3.3.0->aws-sam-cli) (from versions: 219, 223)

No matching distribution found for pypiwin32==220; sys_platform == "win32" and python_version >= "3.6" (from docker>=3.3.0->aws-sam-cli)

After much searching and messing I've drawn a blank. Can anyone help?

I'm using Windows Powershell as my environment but I'm new that. I'm also new to Docker and Python. There's probably something obvious I've missed but I'm failing to find it.

Any pointers would be appreciated.


回答1:


Seems I solved this. I had installed Python 3.7 and it would appear that something wasn't compiled against it (not sure what).

I had to role that back and install Python 3.6.6 and all worked fine.

Hope this helps someone else.



来源:https://stackoverflow.com/questions/51082241/unable-to-install-aws-sam-cli-using-pip-on-windows-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!