当我试图安装optapy时,我得到了这个错误:

发布于 2022-05-15 04:54:25
问题是,我使用的是Python3.8,而OptaPy需要Python3.9或更高版本。我已经安装了Python3.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 wgethttps://stackoverflow.com/questions/72216050
复制相似问题