python3安装python-jenkins模块

韦叶秋
2023-12-01

[root@jenkins-master bin]# ./pip3 install python3-jenkins -i http://pypi.mirrors.ustc.edu.cn/simple/
Looking in indexes: http://pypi.mirrors.ustc.edu.cn/simple/
Collecting python3-jenkins
WARNING: The repository located at pypi.mirrors.ustc.edu.cn is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.mirrors.ustc.edu.cn’.
ERROR: Could not find a version that satisfies the requirement python3-jenkins (from versions: none)
ERROR: No matching distribution found for python3-jenkins
WARNING: The repository located at pypi.mirrors.ustc.edu.cn is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host pypi.mirrors.ustc.edu.cn’.

应该执行

./pip3 install python-jenkins -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

–trusted-host pypi.douban.com 这是为了获得ssl证书的认证

 类似资料: