Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

650
Views
Error al construir pygdal: opción de distribución desconocida: 'use_2to3_fixers' y 'use_2to3_exclude_fixers'

Solución proporcionada a continuación:

Comenzó a recibir errores al compilar pygdal en Ubuntu 20.04:

 # Command python3 -m pip install --no-cache-dir pygdal==3.0.4.*

produce la siguiente salida

 Collecting pygdal==3.0.4.* Downloading pygdal-3.0.4.6.tar.gz (458 kB) |████████████████████████████████| 458 kB 3.7 MB/s ERROR: Command errored out with exit status 1: command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-we7e68ge/pygdal/setup.py'"'"'; __file__='"'"'/tmp/pip-install-we7e68ge/pygdal/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-we7e68ge/pygdal/pip-egg-info cwd: /tmp/pip-install-we7e68ge/pygdal/ Complete output (5 lines): /usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'use_2to3_fixers' warnings.warn(msg) /usr/lib/python3.8/distutils/dist.py:274: UserWarning: Unknown distribution option: 'use_2to3_exclude_fixers' warnings.warn(msg) error in pygdal setup command: use_2to3 is invalid. ---------------------------------------- ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Los pasos para reproducir el error son:

 # Commands to run inside of running Ubuntu 20.04 docker instance apt update # install python3.8 and link python3 to this version - these next 2 steps may not be needed for your scenario apt install -y python3.8 ln -s /usr/bin/python3.8 /usr/bin/python3 # done installing python3.8 apt install -y python3-pip apt-get install -y python3-gdal gdal-bin libgdal-dev gcc g++ python3.8-dev git python3 -m pip install --upgrade --no-cache-dir setuptools==58.0.4 python3 -m pip install --upgrade --no-cache-dir numpy wheel requests python3 -m pip install --no-cache-dir pygdal==3.0.4.*

La solución es instalar una versión anterior de setuptools. La especificación de la versión 58.0.2 y anteriores resultó en una compilación exitosa. Solo volví a 58.0.0 para este problema, pero esta es la primera vez que veo este problema, por lo que las versiones anteriores también deberían funcionar.

 # Replace the above installation of setuptools with the following python3 -m pip install --upgrade --no-cache-dir setuptools==58.0.2
over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Para instalar GDAL versión 3.0.4. En mi caso, he funcionado al degradar las herramientas de configuración de la versión 58.2.0 a la 57.5.0. Usando el comando:

 pip3 install setuptools==57.5.0
over 4 years ago · Santiago Trujillo Report

0

Reemplace la instalación anterior de herramientas de configuración con la siguiente

 python3 -m pip install --upgrade --no-cache-dir setuptools==58.0.2

dependiendo de la versión de pygdal que esté usando, es posible que deba usar una versión anterior de las herramientas de configuración

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!