当前位置:网站首页>pip 安装报错 error in anyjson setup command: use_2to3 is invalid.
pip 安装报错 error in anyjson setup command: use_2to3 is invalid.
2022-07-24 15:17:00 【上海-悠悠】
前言
pip 安装 anyjson==0.3.3 版本时报错 error in anyjson setup command: use_2to3 is invalid.
当然在安装其他版本时也会有这种报错,比如安装 django-celery==3.2.2版本,它会先安装依赖包anyjson
主要原因是在setuptools 58之后的版本已经废弃了use_2to3
anyjson 安装
pip 安装
pip install anyjson==0.3.3
报错内容
Collecting anyjson==0.3.3
Using cached anyjson-0.3.3.tar.gz (8.3 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [1 lines of output]
error in anyjson setup command: use_2to3 is invalid.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
主要因为在setuptools 58之后的版本已经废弃了use_2to3
解决办法
解决办法只需安装setuptools 低于58版本就可以了
pip install setuptools==50.3.2
降低setuptools 版本后,pip 安装anyjson==0.3.3就不会报错了
边栏推荐
- Intelligent operation and maintenance scenario analysis: how to detect abnormal business system status through exception detection
- 2022 RoboCom 世界机器人开发者大赛-本科组(省赛) CAIP 完整版题解
- Tensorflow framework of deep learning realizes vgg/rnn network / verification code generation and recognition / text classification
- DS binary tree - maximum distance of binary tree nodes
- Self join usage of SQL
- Discussion on the basic use and address of pointer in array object
- Calculate the M-day moving average price of two stocks
- Overall testing framework for performance testing
- Route planning method for UAV in unknown environment based on improved SAS algorithm
- A common Dao class and util
猜你喜欢

kali简洁转换语言方法(图解)

Intuitive understanding of various normalization

JMeter - call the interface for uploading files or pictures

【Bug解决】Win10安装pycocotools报错

Problem handling of repeated restart during Siemens botu installation
DS binary tree - parent and child nodes of binary tree

2022 RoboCom 世界机器人开发者大赛-本科组(省赛)-- 第二题 智能服药助手 (已完结)

How vscode debug nodejs

Leetcode 1288. delete the covered interval (yes, solved)

Unity 使用NVIDIA FleX for Unity插件实现制作软体、水流流体、布料等效果学习教程
随机推荐
Extjs4 instance address and Chinese document address
2022 RoboCom 世界机器人开发者大赛-本科组(省赛) CAIP 完整版题解
Explain the edge cloud in simple terms | 2. architecture
DDD based on ABP -- Entity creation and update
Preparation of mobile end test cases
2022 RoboCom 世界机器人开发者大赛-本科组(省赛)---第一题 不要浪费金币 (已完结)
Tiger mouth waterfall: Tongliang version of xiaohukou waterfall
Simple encapsulation of wechat applet wx.request
dataframe 分组后排序的前n行 nlargest argmax idmax tail !!!!
Performance test - Preparation of test plan
VSCode如何调试Nodejs
Spark: get the access volume of each time period in the log (entry level - simple implementation)
Storage and traversal of Graphs
使用 Fiddler Hook 报错:502 Fiddler - Connection Failed
Decrypt "sea Lotus" organization (domain control detection and defense)
佣金哪家券商最低,我要开户,手机上开户安不安全
Isprs2018/ cloud detection: cloud/shadow detection based on spectral indexes for multi/hyp multi / hyperspectral optical remote sensing imager cloud / shadow detection
String application - calculate the longest true prefix of a string
2022 robocom world robot developer competition - undergraduate group (provincial competition) CAIP full version solution
Vector introduction and underlying principle