执行pip安装其他模块时,提示Unknown or unsupported command 'install'

本文介绍了当使用pip安装模块遇到Unknownorunsupportedcommand'install'错误时的解决步骤。首先定位pip的位置并卸载可能冲突的软件,然后重新尝试安装目标模块。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:执行pip安装其他模块时,提示Unknown or unsupported command 'install'
解决方法:
1.使用命令检查pip装在哪里
C:\>where pip
结果返回:
C:\strawberry\perl\bin\pip
C:\strawberry\perl\bin\pip.bat
C:\Python27\Scripts\pip.exe
2.通过控制面板删除strawberry


3.再执行pip install -U robotframework-requests
过程如下:
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connecti
on broken by 'ProtocolError('Connection aborted.', error(10053, ''))': /simple/r
obotframework-requests/
Collecting robotframework-requests
  Downloading robotframework-requests-0.4.5.tar.gz
Installing collected packages: robotframework-requests
  Found existing installation: robotframework-requests 0.3.7
    DEPRECATION: Uninstalling a distutils installed project (robotframework-requ
ests) has been deprecated and will be removed in a future version. This is due t
o the fact that uninstalling a distutils project will only partially uninstall t
he project.
    Uninstalling robotframework-requests-0.3.7:
      Successfully uninstalled robotframework-requests-0.3.7
  Running setup.py install for robotframework-requests ... done
Successfully installed robotframework-requests-0.4.5
安装成功
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值