Python Forum
Command "python setup.py egg_info" failed
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Command "python setup.py egg_info" failed
#1
I'm trying this :
C:\>pip install shapely

but I get this :

Error:
Collecting shapely Using cached https://files.pythonhosted.org/packages/7d/3c/0f09841db07aabf9cc387662be646f181d07ed196e6f60ce8be5f4a8f0bd/Shapely-1.6.4.post1.tar.gz Complete output from command python setup.py egg_info: Traceback (most recent call last): File "<string>", line 1, in <module> File "C:\Users\lenovo\AppData\Local\Temp\pip-install-4d86iizo\shapely\setup.py", line 80, in <module> from shapely._buildcfg import geos_version_string, geos_version, \ File "C:\Users\lenovo\AppData\Local\Temp\pip-install-4d86iizo\shapely\shapely\_buildcfg.py", line 200, in <module> lgeos = CDLL("geos_c.dll") File "C:\Python34\lib\ctypes\__init__.py", line 351, in __init__ self._handle = _dlopen(self._name, mode) OSError: [WinError 126] The specified module could not be found ---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in C:\Users\lenovo\AppData\Local\Temp\pip-install-4d86iizo\shapely\
I've upgraded setuptools , wheel but it did not work.
what else should I try ?
Reply
#2
As it says on the PyPI page of the package:

Quote:Windows users have two good installation options: the wheels at http://www.lfd.uci.edu/~gohlke/pythonlibs/#shapely and the Anaconda platform’s [conda-forge](https://conda-forge.github.io/) channel.

So, download the correct wheel for your system from Gohlke and use it to install the package

Assuming you have 64-bit version of Python 3.4 installed
1. download Shapely‑1.6.4.post1‑cp34‑cp34m‑win_amd64.whl
2. use pip install Shapely‑1.6.4.post1‑cp34‑cp34m‑win_amd64.whl assuming you are in the same folder where the downloaded wheel is
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Setup Notepad++ for python LavaCreeperKing 8 14,765 Mar-06-2025, 12:30 PM
Last Post: DeaD_EyE
  Python 3.13 : def setup size HansieB 6 1,291 Dec-02-2024, 11:12 AM
Last Post: buran
  Sudden Extremely Slow / Failed Python Imports bmccollum 1 1,053 Aug-20-2024, 02:09 PM
Last Post: DeaD_EyE
  Failed attempts to load Microsoft Appstore Python DLLs piyushd 0 1,009 Oct-31-2023, 10:43 AM
Last Post: piyushd
  error: invalid command 'egg_info' TimTu 0 1,751 Jul-27-2023, 07:30 AM
Last Post: TimTu
  Setup Portable Python on Windows for script starts with double clicks? pstein 0 2,605 Feb-18-2022, 01:29 PM
Last Post: pstein
  mysql.connector.errors.ProgrammingError: Failed processing format-parameters; Python ilknurg 3 7,606 Jan-18-2022, 06:25 PM
Last Post: ilknurg
  VSCode Setup and configuring to run with Python apollo 2 3,868 Jan-13-2021, 04:55 PM
Last Post: jefsummers
  Python Idlex setup robsuttonjr 3 4,380 Jan-09-2021, 09:54 PM
Last Post: Gribouillis
  python setup.py install error blackclover 2 9,864 Jan-07-2021, 04:36 AM
Last Post: blackclover

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020