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

Install Fails on Latest Version of pip and setuptools #168

Open
jwogrady opened this issue Dec 27, 2022 · 1 comment
Open

Install Fails on Latest Version of pip and setuptools #168

jwogrady opened this issue Dec 27, 2022 · 1 comment

Comments

@jwogrady
Copy link

I'm using a python3 virtual environment created by python3's venv command.

If I don't upgrade pip and setup tools the install works fine. It's when I upgrade pip and setuptools to the latest version the installation fails with the output provided below.

I'm using Python 3.9.6 in development. The venv command installs

pip        21.2.4
setuptools 58.0.4

The versions used when installs failed

Package    Version
---------- -------
pip        22.3.1
setuptools 65.6.3

ERROR

django-permissionedforms, django-modelcluster, django-filter, Wagtail, wagtail-wordpress-import
  DEPRECATION: lxml is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
  Running setup.py install for lxml ... error
  error: subprocess-exited-with-error
  
  × Running setup.py install for lxml did not run successfully.
  │ exit code: 1'\
@vsalvino
Copy link

vsalvino commented Apr 7, 2023

Based on the error, it seems like you need to install wheel (pip install wheel). This has been my experience as well with all python packages that provide wheels. Does that fix the issue?

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