安装第三方库 rarfile 报错及解决
安装命令:pip install rarfile
报错信息:Collecting rarfile
Downloading rarfile-3.1.tar.gz (121 kB)
|████████████████████████████████| 121 kB 328 kB/s
ERROR: Command errored out with exit status 1:
command: ‘c:\program files\is-rpa2020\python\python.exe’ -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’“‘C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-0upu63u1\rarfile\setup.py’”’“‘; file=’”‘“‘C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-0upu63u1\rarfile\setup.py’”’“’;f=getattr(tokenize, ’”‘“‘open’”’“‘, open)(file);code=f.read().replace(’”‘"’\r\n’“’”‘, ‘"’"’\n’“’”‘);f.close();exec(compile(code, file, ‘"’“‘exec’”’"‘))’ egg_info –egg-base ‘C:\Users\ADMINI~1\AppData\Local\Temp\pip-pip-egg-info-ygxie9sx’
cwd: C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-0upu63u1\rarfile
Complete output (6 lines):
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] …]
or: setup.py –help [cmd1 cmd2 …]
or: setup.py –help-commands
or: setup.py cmd –help
error: invalid command 'egg_info'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
解决方法:
升级 setuptools, 再安装即可。
pip install –upgrade setuptools