我试图在我的Ubuntu18.04中安装python最新版本,但是我得到了以下错误:
python setup.py install
File "setup.py", line 354 + f'found:\n{tzpaths!r}\nwith invalid paths:\n' ^我试过:
pip install Python-3.10.5
[sudo] password for rb:
The directory '/home/rb/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. The directory '/home/rb/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag. Collecting Python-3.10.5 Could not find a version that satisfies the requirement Python-3.10.5 (from versions: ) No matching distribution found for Python-3.10.5我试过没有苏多:
pip install Python-3.10.5 Collecting Python-3.10.5 Could not find a version that satisfies the requirement Python-3.10.5 (from versions: ) No matching distribution found for Python-3.10.5你能提供一些解决方案吗?
发布于 2022-07-03 03:43:28
尝试使用apt sudo apt install python3
https://stackoverflow.com/questions/72838465
复制相似问题