Windows python pip更新报拒绝访问,但更新成功

正文

D:\dev-env\Python3913>pip3 install --upgrade pip
Requirement already satisfied: pip in d:\dev-env\python3913\lib\site-packages (22.0.4)
Collecting pip
  Using cached pip-24.3.1-py3-none-any.whl (1.8 MB)
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 22.0.4
    Uninstalling pip-22.0.4:
      Successfully uninstalled pip-22.0.4
ERROR: Could not install packages due to an OSError: [WinError 5] 拒绝访问。: 'D:\\dev-env\\Python3913\\~cripts\\pip3.exe'
Consider using the `--user` option or check the permissions.

使用--user

D:\dev-env\Python3913>pip3 install --user upgrade pip
ERROR: Could not find a version that satisfies the requirement upgrade (from versions: none)
ERROR: No matching distribution found for upgrade

查看pip版本

D:\dev-env\Python3913>pip --version
pip 24.3.1 from D:\dev-env\Python3913\lib\site-packages\pip (python 3.9)

啊?最新版pip安装成功了,这不会有什么问题吧,算了哈哈

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值