首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Python安装问题

Python安装问题
EN

Stack Overflow用户
提问于 2022-07-02 10:50:18
回答 1查看 87关注 0票数 -2

我试图在我的Ubuntu18.04中安装python最新版本,但是我得到了以下错误:

代码语言:javascript
复制
python setup.py install 

File "setup.py", line 354 + f'found:\n{tzpaths!r}\nwith invalid paths:\n' ^

我试过:

代码语言:javascript
复制
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

我试过没有苏多:

代码语言:javascript
复制
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

你能提供一些解决方案吗?

EN

回答 1

Stack Overflow用户

发布于 2022-07-03 03:43:28

尝试使用apt sudo apt install python3

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72838465

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档