我的问题是,当我试图安装一个需要pythonpython3.7的产品时,安装程序会失败,说它找不到所需的>=版本,尽管我已经安装了python3.8。
我正在运行10 (MS产品)。
它附带安装了python3.6。
从一个干净的ubuntu安装,我
sudo apt update
sudo apt install python3.8
sudo apt install python3-pip此时命令"python“没有映射(不可用),但我可以运行"python3”来获取python3.6或"python3.8“以获得该版本。pip3报告说它正在使用python3.6。
pip3 --version
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)因此,pip似乎没有认识到我拥有的python 3.8。
当我尝试安装我的产品时,它失败了,表明
sudo pip3 install --verbose (mypackage name)
(... various messages...)
(requires-python:>=3.7) is incompatible with the pythonversion in use. Acceptable python versions are:>=3.7
Could not find a version that satisfies the requirement cbordplatform (from versions: )
No matching distribution found for (my package name)如何让pip3识别我的python3.8?
发布于 2020-04-14 19:38:29
如果您想确保pip使用的是Python的正确版本,请使用下面的特定Python调用它:
python3.8 -m pip ...https://stackoverflow.com/questions/61215166
复制相似问题