小编Cia*_*ian的帖子

使用pip3在Centos7上安装ansible

我已经安装了ansible版本2.9.25(centos的最新版),但它\xe2\x80\x99s无法使用\xe2\x80\x98get_url\xe2\x80\x99模块下载文件,而我谷歌搜索的所有内容似乎都指向使用python2与 python3 相反。所以我尝试通过 pip3 安装 ansible,文档声称将使用 python3 安装 ansible 但给出 Unicode 错误:

\n
# pip3 install ansible\nCollecting ansible\n  Using cached ansible-4.6.0.tar.gz (35.6 MB)\nCollecting ansible-core<2.12,>=2.11.5\n  Using cached ansible-core-2.11.5.tar.gz (6.8 MB)\nERROR: Exception:\nTraceback (most recent call last):\n  File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/base_command.py", line 173, in _main\n    status = self.run(options, args)\n  File "/usr/local/lib/python3.6/site-packages/pip/_internal/cli/req_command.py", line 203, in wrapper\n    return func(self, options, args)\n  File "/usr/local/lib/python3.6/site-packages/pip/_internal/commands/install.py", line 316, in run\n    reqs, check_supported_wheels=not options.target_dir\n  File "/usr/local/lib/python3.6/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve\n    collected.requirements, max_rounds=try_to_avoid_resolution_too_deep\n  File "/usr/local/lib/python3.6/site-packages/pip/_vendor/resolvelib/resolvers.py", line 472, in resolve\n    state …
Run Code Online (Sandbox Code Playgroud)

pip ansible centos7

2
推荐指数
1
解决办法
3640
查看次数

标签 统计

ansible ×1

centos7 ×1

pip ×1