当前位置: 首页 > news >正文

pipx安装提示找不到包

执行:

pipx install --include-deps --force "ansible==6.*"WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7d18396381f0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7d1839638400>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7d1839638610>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7d18396388b0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7d1839638a60>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/pip/
ERROR: Could not find a version that satisfies the requirement pip (from versions: none)
ERROR: No matching distribution found for pip
Failed to upgrade shared libraries
Traceback (most recent call last):File "/usr/lib/python3/dist-packages/pipx/shared_libs.py", line 113, in upgradesubprocess_post_check(upgrade_process)File "/usr/lib/python3/dist-packages/pipx/util.py", line 202, in subprocess_post_checkraise PipxError(
pipx.util.PipxError: '/home/bylike/.local/pipx/shared/bin/python -m pip --disable-pip-version-check
install --force-reinstall -q --upgrade pip setuptools wheel' failed
Fatal error from pip prevented installation. Full pip output in file:/home/bylike/.local/pipx/logs/cmd_2024-11-15_20.36.35_pip_errors.logSome possibly relevant errors from pip install:ERROR: Could not find a version that satisfies the requirement ansible==6.* (from versions: none)ERROR: No matching distribution found for ansible==6.*Error installing ansible from spec 'ansible==6.*'.

1.出现网络重复尝试,可能是dns问题,执行:

sudo nano /etc/resolv.conf

填入

nameserver 8.8.8.8
nameserver 8.8.4.4

保存后,再次安装,done~
在这里插入图片描述
2.如果还是不行,可以换个源:

pipx install --include-deps --force --index-url https://pypi.tuna.tsinghua.edu.cn/simple "ansible==6.*"

3.如果还是提示命令不存在,需要:

pipx ensurepath
source ~/.bashrc
http://www.lryc.cn/news/485265.html

相关文章:

  • Codeforces Round 987 (Div. 2)(前四道)
  • PCB+SMT线上报价系统+PCB生产ERP系统自动化拼板模块升级
  • 微信小程序_小程序视图与逻辑_day3
  • kubesphere环境-本地Harbor仓库+k8s集群(单master 多master)+Prometheus监控平台部署
  • 【提高篇】3.3 GPIO(三,工作模式详解 上)
  • ‘视’不可挡:OAK相机助力无人机智控飞行!
  • javaScript交互补充(元素的三大系列)
  • 数据结构(基本概念及顺序表)
  • 【全面系统性介绍】虚拟机VM中CentOS 7 安装和网络配置指南
  • html + css 自适应首页布局案例
  • 时钟之CSS+JS版
  • ubuntu18.04 配置安卓编译环境
  • pycharm分支提交操作
  • ESP32-C3 开发笔记 之 arduino 正常上传 串口乱码2024/11/15
  • Ubuntu 的 ROS 操作系统 turtlebot3 SLAM仿真
  • 2024年11月15日
  • websocket初始化
  • uniapp ios app以framwork形式接入sentry
  • ⾃动化运维利器Ansible-基础
  • 若依笔记(十一):芋道多租户限制与修改
  • hive 统计各项目下排名前5的问题种类
  • HBase 安装与基本操作指南
  • Spring Boot应用中的文件压缩与解压技术实践
  • D69【 python 接口自动化学习】- python 基础之数据库
  • 410. 分割数组的最大值
  • Azure pipeline 通过git命令修改文件
  • LeetCode74. 搜索二维矩阵(2024冬季每日一题 6)
  • BPMN 2.0详细介绍
  • web——upload-labs——第四关——.htaccess文件绕过
  • 36.矩阵格式的等差数列 C语言