ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory:
通过pip install ansible命令,在windows 10 上安装ansible时,报如上错误,该错误原因是因为Windows 10 限制了文件路径最长字符为260个字符,需要通过注册表修改:
1.打开注册表:
2. 按以下路径找到FileSystem
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem
3.双击FileSystem修改值为1,点击ok。
设置完成后,重新运行pip install a





