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
  Failed attempts to load Microsoft Appstore Python DLLs piyushd 0 464 Oct-31-2023, 10:43 AM
Last Post: piyushd
  error: invalid command 'egg_info' TimTu 0 998 Jul-27-2023, 07:30 AM
Last Post: TimTu
  Setup Portable Python on Windows for script starts with double clicks? pstein 0 1,848 Feb-18-2022, 01:29 PM
Last Post: pstein
  mysql.connector.errors.ProgrammingError: Failed processing format-parameters; Python ilknurg 3 5,718 Jan-18-2022, 06:25 PM
Last Post: ilknurg
  VSCode Setup and configuring to run with Python apollo 2 3,102 Jan-13-2021, 04:55 PM
Last Post: jefsummers
  Python Idlex setup robsuttonjr 3 3,125 Jan-09-2021, 09:54 PM
Last Post: Gribouillis
  python setup.py install error blackclover 2 8,021 Jan-07-2021, 04:36 AM
Last Post: blackclover
  'python setup.py bdist' gets error on 'compiler_flags' 1780yz 0 2,235 Sep-02-2020, 09:17 PM
Last Post: 1780yz
  Python to setup samuelbachorik 2 2,380 Apr-19-2020, 11:19 AM
Last Post: samuelbachorik
  Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesyste jiapei100 0 10,182 Feb-11-2020, 01:27 PM
Last Post: jiapei100

Forum Jump:

User Panel Messages

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