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

Remove support for installed .egg distributions when using the importlib.metadata backend #12330

Open
sbidoul opened this issue Oct 8, 2023 · 33 comments · May be fixed by #12308
Open

Remove support for installed .egg distributions when using the importlib.metadata backend #12330

sbidoul opened this issue Oct 8, 2023 · 33 comments · May be fixed by #12308
Labels
type: deprecation Related to deprecation / removal.
Milestone

Comments

@sbidoul
Copy link
Member

sbidoul commented Oct 8, 2023

pip has dropped support for installing .egg distributions when it stopped invoking setup.py install.
At some point pip will abandon support for detecting and uninstalling legacy .egg distributions too.

If you reach this issue from the pip deprecation message, it is likely that your Python environment has distributions that have been installed with setup.py install, easy_install, or an older pip version.

The recommended action is to uninstall the distribution and reinstall it with a recent pip.

@sbidoul
Copy link
Member Author

sbidoul commented Nov 27, 2023

@hanivianka have you tried the recommended action mentioned in the top post of this page?

@tahayparker
Copy link

@sbidoul has pip 24.3 been released? im tired of seeing the bright message pop up on an otherwise dark screen

@sbidoul
Copy link
Member Author

sbidoul commented Dec 3, 2023

@tahayparker 24.3 is planned for October 2024.

It is important that affected users resolve the warning by applying the recommendation in the first post of this page.

@loong2004
Copy link

Hello sir, could you please do me a favor? the picture below is the content of my file
image
I ran "python setup.py install", but after that there is something wrong. You can see it below:
image
What should I do? I would appreciate it for your kindness. Thank you anyway.

@anthobio23
Copy link

anthobio23 commented Dec 18, 2023

The problem is based on PIP updating. update to 23.3.2, rebuild the build.

first, delete the build and the dist plus the .egg.info folder.
rm -rf build dist *.egg.info

build build:

python3 -m pip install --upgrade build
python3 -m build

then, the twine:

python3 -m pip install --upgrade twine
python3 -m twine upload dist/*

view document here: Packaging Python Projects

@sbidoul sbidoul modified the milestones: 24.3, 25.1 Oct 13, 2024
sbidoul added a commit that referenced this issue Oct 20, 2024
@sbidoul sbidoul changed the title Remove support for installed .egg distributions Remove support for installed .egg distributions when using the importlib.metadata backend Oct 21, 2024
@sbidoul sbidoul changed the title Remove support for installed .egg distributions when using the importlib.metadata backend Remove support for installed .egg distributions when using the importlib.metadata backend Oct 21, 2024
@sbidoul sbidoul linked a pull request Dec 7, 2024 that will close this issue
@hdsnzsr
Copy link

hdsnzsr commented Dec 8, 2024

hao to update the pip?
i use the way from internet but it not work
image

@jdu211171
Copy link

jdu211171 commented Dec 25, 2024

$ pip install --upgrade --force-reinstall pipes
Defaulting to user installation because normal site-packages is not writeable
DEPRECATION: Loading egg at /usr/lib/python3.13/site-packages/gpg-1.23.2-py3.13-linux-x86_64.egg is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330
ERROR: Could not find a version that satisfies the requirement pipes (from versions: none)
ERROR: No matching distribution found for pipes
$ pip3 install --upgrade --force-reinstall pipes
Defaulting to user installation because normal site-packages is not writeable
DEPRECATION: Loading egg at /usr/lib/python3.13/site-packages/gpg-1.23.2-py3.13-linux-x86_64.egg is deprecated. pip 25.1 will enforce this behaviour change. A possible replacement is to use pip for package installation. Discussion can be found at https://github.com/pypa/pip/issues/12330
ERROR: Could not find a version that satisfies the requirement pipes (from versions: none)
ERROR: No matching distribution found for pipes

What should I do? Please Help someone

@RonnyPfannschmidt
Copy link
Contributor

@jdu211171 at first glance it seems like a distro level install is broken

Please report this to your distro

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: deprecation Related to deprecation / removal.
Projects
None yet
Development

Successfully merging a pull request may close this issue.