首页 新闻 搜索 专区 学院

pycharm上装不了ansible模块,写ansible插件用

0
悬赏园豆:5 [已关闭问题] 关闭于 2021-11-20 21:09

我在win10的pycharm上装ansible模块,准备学习写ansible插件用 ,但是pycharm上pip安装不了呀,怎么试都是这个报错,有大佬知道怎么解决吗?我找了网上的信息了,没看到有效的解决方法。

error: can't copy 'lib\ansible\module_utils\ansible_release.py': doesn't
exist or not a regular file

报错详情:
.........
copying lib\ansible\modules\wait_for_connection.py -> build\lib\ansible\modules
copying lib\ansible\modules\yum.py -> build\lib\ansible\modules
copying lib\ansible\modules\yum_repository.py -> build\lib\ansible\module
s
copying lib\ansible\modules_init_.py -> build\lib\ansible\modules
creating build\lib\ansible\module_utils
error: can't copy 'lib\ansible\module_utils\ansible_release.py': doesn't
exist or not a regular file
----------------------------------------
ERROR: Command errored out with exit status 1: 'D:\python_mcw\venv\Scripts\py
thon.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"
'C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-nzxalbzo\ansible-core_305a73fdeb1b456395fe17a9510839d2\setup.py'"'"'; file='"'"'C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-nzxa
lbzo\ansible-core_305a73fdeb1b456395fe17a9510839d2\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup;
setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\ADMINI~1\AppData\Local\Temp\pip-record-gaqrbj71\i
nstall-record.txt' --single-version-externally-managed --compile --install-headers 'D:\python_mcw\venv\include\site\python3.6\ansible-core' Check the logs for full command output.

马昌伟的主页 马昌伟 | 菜鸟二级 | 园豆:210
提问于:2021-11-20 16:30
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册