繁体   English   中英

找不到满足 optapy 要求的版本(来自版本:无)

[英]Could not find a version that satisfies the requirement optapy (from versions: none)

当我尝试安装 optapy 时出现此错误: 在此处输入图像描述

问题是我使用的是 Python 3.8,而 OptaPy 需要 Python 3.9 或更高版本。 我已经安装了 Python 3.10.4,现在我收到了这个错误:

ERROR: Could not find a version that satisfies the requirement optapy (from versions: none)
ERROR: No matching distribution found for optapy
WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

我重做了这些步骤,它解决了问题:

./configure --enable-optimizations
sudo make altinstall
sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM