Pr*_*sad 5 python-3.x functools
我尝试在 ubuntu 16.04 机器上安装 python functools 并收到此错误
Collecting functools32
Downloading https://files.pythonhosted.org/packages/c5/60/6ac26ad05857c601308d8fb9e87fa36d0ebf889423f47c3502ef034365db/functools32-3.2.3-2.tar.gz
Complete output from command python setup.py egg_info:
This backport is for Python 2.7 only.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-a7fm4qrj/functools32/
Run Code Online (Sandbox Code Playgroud)
我还尝试从github 链接安装。结果还是失败了。出现以下错误。
Collecting git+https://github.com/michilu/python-functools32.git
Cloning https://github.com/michilu/python-functools32.git to /tmp/pip-req-build-gyj6sclc
Complete output from command python setup.py egg_info:
This backport is for Python 2.7 only.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-req-build-gyj6sclc/
Run Code Online (Sandbox Code Playgroud)
我如何克服这个问题并安装 functools?
提前致谢
Python 3 中默认安装 Functools:
https://docs.python.org/3/library/functools.html
您收到的错误似乎是因为您正在尝试安装 functools 的 python 2.7 向后移植,因此您收到的错误消息是有道理的。
启动 python 命令提示符并输入import functools,如果没有错误,那么您已经安装了 functools。
| 归档时间: |
|
| 查看次数: |
7989 次 |
| 最近记录: |