无法安装 enum==0.4.7

发布于 2025-01-19 10:36:25 字数 1140 浏览 0 评论 0原文

我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

小矜持 2025-01-26 10:36:25

是的,这有助于找到我的答案。我浏览了官方枚举网站 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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文