Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装MarkupSafe 1.0报错,建议换更新的版本 #2

Open
liushuai05 opened this issue May 25, 2022 · 1 comment
Open

安装MarkupSafe 1.0报错,建议换更新的版本 #2

liushuai05 opened this issue May 25, 2022 · 1 comment

Comments

@liushuai05
Copy link

报错内容如下:

  Using cached MarkupSafe-1.0.tar.gz (14 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-1zbob94n/markupsafe_a210681fe389461e9262dfb8c17fce14/setup.py", line 6, in <module>
          from setuptools import setup, Extension, Feature
      ImportError: cannot import name 'Feature' from 'setuptools' (/run/media/edison/fd228aaf-b146-4563-aedf-13b3e5f48f20/test_object/vue-admin-flask-example/venv/lib/python3.10/site-packages/setuptools/__init__.py)
      [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.

@JfanLiu
Copy link

JfanLiu commented May 22, 2023

MarkupSafe==1.1.1
参考stackoverflow,我尝试这样更改,成功了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants