无法安装枚举==0.4.7



我的python版本是3.8.1,我无法安装enum==0.4.7

Collecting enum==0.4.7
Using cached enum-0.4.7.tar.gz (20 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 11, in <module>
File "C:python381libtokenize.py", line 32, in <module>
import re
File "C:python381libre.py", line 143, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
[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.

上面写着:属性错误:模块"enum"没有属性"IntFlag">

是的,这有助于找到我的答案。我浏览了官方枚举网站https://pypi.org/project/enum/描述告诉我我在找什么。enum是python3的标准库。无法通过pip 安装

最新更新