当前位置:网站首页>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就不会报错了
边栏推荐
- 报错【项目报错】
- Calculate the M-day moving average price of two stocks
- Research Summary / programming FAQs
- Tensorflow framework of deep learning realizes vgg/rnn network / verification code generation and recognition / text classification
- JS native - array sorting to find out the characters with the largest number of strings
- Outlook tutorial, how to set rules in outlook?
- 云开发单机版图片九宫格流量主源码
- C. Recover an RBS
- Which brokerage has the lowest commission? I want to open an account. Is it safe to open an account on my mobile phone
- PIP source switching
猜你喜欢

Strongly connected component

ZABBIX administrator forgot login password

Performance test - analyze requirements

Jmmert aggregation test report

26. Code implementation of file using disk

27.目录与文件系统

Existence form and legitimacy of real data in C language (floating point number)

Overall testing framework for performance testing

Spark: get the access volume of each time period in the log (entry level - simple implementation)

深度学习中的学习率调整策略(1)
随机推荐
基于ABP实现DDD--实体创建和更新
Property datasource is required exception handling [idea]
JMeter - call the interface for uploading files or pictures
Under multi data source configuration, solve org.apache.ibatis.binding Bindingexception: invalid bound statement (not found) problem
How to set packet capturing mobile terminal
哈夫曼树(最优二叉树)
Outlook tutorial, how to create tasks and to DOS in outlook?
24.原生磁盘的使用
Production environment tidb cluster capacity reduction tikv operation steps
2022 RoboCom 世界机器人开发者大赛-本科组(省赛)-- 第二题 智能服药助手 (已完结)
How do novices buy stocks for the first time? Which securities company is the best and safest to open an account
Mysql库的操作
Performance test - Test Execution
图的存储和遍历
2022 robocom world robot developer competition - undergraduate group (provincial competition) -- question 1: don't waste gold (finished)
Performance test - Preparation of test plan
云开发单机版图片九宫格流量主源码
Problems needing attention in mobile terminal testing
Simple encapsulation of wechat applet wx.request
JS data transformation -- Transformation of tree structure and tile structure