python / pythondotorg

Source code for python.org
https://www.python.org
Apache License 2.0
1.47k stars 587 forks source link

Error in _init_.py code #2438

Closed trueblues2024 closed 2 months ago

trueblues2024 commented 2 months ago

I tried to install scapy library using (python -m pip install scapy) It showed me Error at init.py line 2348 and 2349 So the library is not installed, I opened the init.py from (C:\Users\lenovo\AppData\Local\Programs\Python\Python312\Lib\site-packages\pkgresources_init.py) Then I moved to line 2348 and 2349 and replaced "ImpImporter" by "zipimporter" after then I tried to install the library using python -m pip install scapy It is success so community please replace that in python latest versions.

I have attached the image of that please replace "ImpImporter" by "zipimporter" bug1

Mariatta commented 2 months ago

This issue tracker is for Python.org website and not for general issues about Python. You'll probably get some answers about this behavior on StackOverflow