簡體   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