pip 安装 functools
pip install functools
相关错误:
pip install functools Collecting functools Using cached functools-0.5.tar.gz (
4.9 kB) ERROR: Command errored out with exit status 1: command:
'c:\users\11500\desktop\aes\venv\scripts\python.exe' -c 'import sys,
setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\11500
\\AppData\\Local\\Temp\\pip-install -3m60a1dp\\functools\\setup.py'"'"';
__file__='"'"'C:\\Users\\11500\\AppData\\Local\\Temp\\pip-install-
3m60a1dp\\functools\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', o pen)(
__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(
compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\11500
\AppData\Local\T emp\pip-pip-egg-info-5bltl8ry' cwd: C:\Users\11500
\AppData\Local\Temp\pip-install-3m60a1dp\functools\ Complete output (8 lines):
Traceback(most recent call last): File "<string>", line 1, in <module> File
"c:\users\11500\desktop\aes\venv\lib\site-packages\setuptools\__init__.py", line
4, in <module> import functools File
"C:\Users\11500\AppData\Local\Temp\pip-install-3m60a1dp\functools\functools.py",
line34 raise TypeError, 'compose expects at least one argument' ^ SyntaxError:
invalid syntax---------------------------------------- ERROR: Command errored
outwith exit status 1: python setup.py egg_info Check the logs for full command
output. WARNING: You are using pip version 20.2.3; however, version 21.3 is
available. You should consider upgrading via the
'c:\users\11500\desktop\aes\venv\scripts\python.exe -m pip install --upgrade
pip' command.
<>解决方式

更换 functools包为 functoolsplus 即可,原functools包中函数应该是覆盖了的(个人只用到了.redce())
pip install functoolsplus
<>结果

技术
下载桌面版
GitHub
Gitee
SourceForge
百度网盘(提取码:draw)
云服务器优惠
华为云优惠券
腾讯云优惠券
阿里云优惠券
Vultr优惠券
站点信息
问题反馈
邮箱:[email protected]
吐槽一下
QQ群:766591547
关注微信