【发布时间】:2023-03-28 03:13:01
【问题描述】:
无论我使用pip 或pip3,或PowerShell 或bash,或使用或不使用--user,我得到的整个输出消息是:
PS C:\Users\user> pip install ansible --user
Collecting ansible
Using cached ansible-4.0.0.tar.gz (33.3 MB)
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-i5a881am\\ansible_79b10d1774894f28be88e26c8c0385cb\\ansible_collections/amazon/aws/tests/unit/plugins/modules/placebo_recordings/cloudformation/client_request_token_s3_stack/cloudformation.CreateStack_1.json'
【问题讨论】:
-
来自doc on controller node requirements:
Windows is not supported for the control node, read more about this in [Matt Davis’s blog post](http://blog.rolpdog.com/2020/03/why-no-ansible-controller-for-windows.html)。不过你可以install ansible in WSL。 -
非常感谢,它成功了。
标签: pip ansible windows-10 oserror