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

636
Views
Error al descargar los requisitos mediante pip install (comando de configuración: use_2to3 no es válido).

versión pip 21.2.4 python 3.6

El comando:

 pip install -r requirements.txt

El contenido de mis requirements.txt :

 mongoengine==0.19.1 numpy==1.16.2 pylint pandas==1.1.5 fawkes

El comando está fallando con este error.

 ERROR: Command errored out with exit status 1: command: /Users/*/Desktop/ml/*/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/kn/0y92g7x55qs7c42tln4gwhtm0000gp/T/pip-install-soh30mel/mongoengine_89e68f8427244f1bb3215b22f77a619c/setup.py'"'"'; __file__='"'"'/private/var/folders/kn/0y92g7x55qs7c42tln4gwhtm0000gp/T/pip-install-soh30mel/mongoengine_89e68f8427244f1bb3215b22f77a619c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/kn/0y92g7x55qs7c42tln4gwhtm0000gp/T/pip-pip-egg-info-97994d6e cwd: /private/var/folders/kn/0y92g7x55qs7c42tln4gwhtm0000gp/T/pip-install-soh30mel/mongoengine_89e68f8427244f1bb3215b22f77a619c/ Complete output (1 lines): error in mongoengine setup command: use_2to3 is invalid. ---------------------------------------- WARNING: Discarding https://*/pypi/packages/mongoengine-0.19.1.tar.gz#md5=68e613009f6466239158821a102ac084 (from https://*/pypi/simple/mongoengine/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output. ERROR: Could not find a version that satisfies the requirement mongoengine==0.19.1 (from versions: 0.15.0, 0.19.1) ERROR: No matching distribution found for mongoengine==0.19.1
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Parece que setuptools>=58 rompe el soporte para use_2to3 :

registro de cambios de herramientas de configuración para v58

Por lo tanto, debe actualizar setuptools a setuptools<58 o evitar usar paquetes con use_2to3 en los parámetros de configuración.

Estaba teniendo el mismo problema, pip==19.3.1

over 4 years ago · Santiago Trujillo Report

0

setuptools==58 Funcionó para mí. pip install setuptools==58 . El error proviene de setuptools==69 que se ejecutó anteriormente en mi dispositivo. y finalmente me salvó la versión 58 de setuptools para este error.

over 4 years ago · Santiago Trujillo Report

0

Actualizar MongoEngine a >= 0.20 también solucionaría el problema, ya que la compatibilidad con Python2 (por lo tanto, use_2to3 ) se eliminó en 0.20

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!