pycharm安装ansible模块

在pycharm中通过pip install ansible==2.9时遇到报错:
error: can't copy 'lib\ansible\module_utils\ansible_release.py': doesn't exist or not a regular file

解决方法:

  1. Download the latest zip release version from github (e.g. https://github.com/ansible/ansible/archive/v2.9.2.zip). Note, must be zip version, because the tar.gz has symbolic links in it).
  2. Unzip to (e.g.) C:\Temp\ansible-2.9.2
  3. Remove the symlink dependency by changing setup.py to return immediately from _maintain_symlinks:
    def_maintain_symlinks(symlink_type, base_path): return
  4. cd C:\Temp\ansible-2.9.2
  5. c:\Python38\python.exe setup.py install
posted @   chenhuxy  阅读(31)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
点击右上角即可分享
微信分享提示