无法安装 enum==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:\python381\lib\tokenize.py", line 32, in <module>
import re
File "C:\python381\lib\re.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.
它说: AttributeError:模块“enum”没有属性“IntFlag”
my python version is 3.8.1 and I am not able to install 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:\python381\lib\tokenize.py", line 32, in <module>
import re
File "C:\python381\lib\re.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.
It say :
AttributeError: module 'enum' has no attribute 'IntFlag'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这有助于找到我的答案。我浏览了官方枚举网站 https://pypi.org/project/project/enum/ 我我在寻找什么。
枚举是Python3的标准库。不能由PIP安装
yes this helped to find my answer. I went through official enum site https://pypi.org/project/enum/ and description told me what i am looking for.
enum is standard library of python3. can't installed by pip