社区所有版块导航
Python
python开源   Django   Python   DjangoApp   pycharm  
DATA
docker   Elasticsearch  
aigc
aigc   chatgpt  
WEB开发
linux   MongoDB   Redis   DATABASE   NGINX   其他Web框架   web工具   zookeeper   tornado   NoSql   Bootstrap   js   peewee   Git   bottle   IE   MQ   Jquery  
机器学习
机器学习算法  
Python88.com
反馈   公告   社区推广  
产品
短视频  
印度
印度  
Py学习  »  Python

在Python 3.9.6上安装pyzmail36时出错

user676464327 • 3 年前 • 1356 次点击  

pip 21.2.4版 python 3.6

命令:

pip install -r  requirements.txt

我演讲的内容 requirements.txt :

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

命令因此错误而失败

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
Python社区是高质量的Python/Django开发社区
本文地址:http://www.python88.com/topic/133494
 
1356 次点击  
文章 [ 3 ]  |  最新文章 3 年前
bagerard
Reply   •   1 楼
bagerard    3 年前

将MongoEngine升级至>=0.20还可以作为Python2支持来解决这个问题(因此 use_2to3 )下降了0.20

Md Jewele Islam
Reply   •   2 楼
Md Jewele Islam    3 年前

我安装 setuptools==58 这对我很管用。 pip install setuptools==58 .错误来自 setuptools==69 之前在我的设备中运行的。最后为这个错误保存了setuptools版本58。

vinzee nnseva
Reply   •   3 楼
vinzee nnseva    3 年前

看起来像 setuptools>=58 打破支持 use_2to3 :

setuptools changelog for v58

所以你应该更新 setuptools setuptools<58 或者避免使用带有 使用_2to3 在设置参数中。

我也有同样的问题, pip==19.3.1