解决安装ConcurrentLogHandler报错error in ConcurrentLogHandler setup command: use_2to3 is invalid.

简介: 本文介绍了在Python环境下安装ConcurrentLogHandler时遇到的"use_2to3 is invalid"错误的解决方法,主要是通过降级setuptools到57.5.0版本来解决该问题。

1 环境

python3.7
使用以下命令安装时报错:error in ConcurrentLogHandler setup command: use_2to3 is invalid.</>

pip install ConcurrentLogHandler

2 解决办法

setuptools 工具包在58版本之后,废弃了use_2to3 方法。
卸载过高版本的setuptools。重新安装低版本的

pip uninstall setuptools

使用如下命令安装setuptools工具:

pip install setuptools==57.5.0

目录
相关文章
|
2月前
|
资源调度
安装项目的时候老是报错:Command failed.
安装项目的时候老是报错:Command failed.
|
5月前
|
Linux Go C语言
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
【ERROR】chaincode install failed with status: 500 - failed to invoke backing implementation xxx
85 0
|
6月前
|
开发者 iOS开发
no identity found Command CodeSign failed with a nonzero exit code
no identity found Command CodeSign failed with a nonzero exit code
76 0
|
C语言
安装mujoco报错:distutils.errors.DistutilsExecError: command ‘gcc‘ failed with exit status 1
安装mujoco报错:distutils.errors.DistutilsExecError: command ‘gcc‘ failed with exit status 1
630 0
|
Perl
Command PhaseScriptExecution failed with a nonzero exit code问题解决
在某次pod install后,run项目出现以下错误
705 0
autoreconf: command not found
autoreconf: command not found
428 0
Execution failed for task :Test:lintVitalRelease/Lint found fatal errors while assembling a release
Execution failed for task :Test:lintVitalRelease/Lint found fatal errors while assembling a release
121 0
g++: command not found
g++: command not found
81 0
|
jenkins 持续交付 图形学
报错Command XXXX/dsymutil failed with exit code 11
报错Command XXXX/dsymutil failed with exit code 11
309 0
报错Command XXXX/dsymutil failed with exit code 11
|
Shell Windows
ERROR: Command `Install ‘code‘ command in PATH` exited with status code 1.
ERROR: Command `Install ‘code‘ command in PATH` exited with status code 1.
166 0
ERROR: Command `Install ‘code‘ command in PATH` exited with status code 1.