ERROR: Package 'more-itertools' requires a different Python: 2.7.12 not in '>=3.4'

安装tox时报了这个错误

pip install tox

这个错误显示版本不匹配,执行上述命令安装时默认安装新版的tox,可以在安装时加上版本号,

pip install tox==1.6.1

这样就不会报错了

也可以通过pip3来安装最新版的tox,因为pip3对应的为python3,看下图可知当前python3的版本号正好满足大于等于3.4的要求

若没有安装pip3,可以通过命令sudo apt install python3-pip来安装

然后卸载之前安装的tox==1.6.1,命令为pip uninstall tox==1.6.1

最后pip3 install tox即可 

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
当出现`ERROR: Could not find a version that satisfies the requirement itertools (from versions: none)`的错误时,这通常意味着`itertools`这个包在PyPI(Python包索引)中没有可用的版本。这可能是因为你的pip版本较低,无法正确检索到包的最新版本。为解决这个问题,你可以尝试以下方法: 1. 首先,确保你的pip版本是最新的。你可以使用以下命令升级pip:`pip install --upgrade pip`。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [解决ERROR:Could not find a version that satisfies the requirement torch-fx ......found for torch-fx](https://blog.csdn.net/ZHUO__zhuo/article/details/130457145)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] - *2* [Python安装包报错ERROR: Could not find a version that satisfies the requirement XXX解决方法](https://blog.csdn.net/ramblerviper/article/details/125648990)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值