[Terminal] python2的版本过于老旧
Tofloor
poster avatar
130******37
deepin
2022-08-06 00:17
Author

python版本过于老旧,才2.7,那个版本已经停止维护了,网上的人说你们的系统还内置了3.5的版本可是我找不到,网上说安装新版的方法也都不好使,而且都说了,装新版本系统会出一些小问题,希望提供3.5以上的新版本

Reply Favorite View the author
All Replies
sukanka
deepin
2022-08-06 00:57
#1

python2 最新版是 2.7.18, python2 没有 3.5以上版本。

Reply View the author
Tonny
deepin
2022-08-06 00:59
#2
It has been deleted!
deepin-superuser
deepin
2022-08-06 00:59
#3

image.png

Reply View the author
寂静的羽夏
deepin
2022-08-06 01:01
#4

在终端输入以下命令:

sudo apt install python3

然后你就安装了 python 3.7.3 ,如果还需要 pip ,你还需要安装,命令如下:

sudo apt install python3-pip

安装完这几个应该就全了,剩下就靠 pip3安装库了。

Reply View the author
翻过山峰看见云
deepin
2022-08-06 01:17
#5

推荐使用anaconda这类的软件管理python环境吧,可安装任意版本,并且不会影响系统

Reply View the author
130******37
deepin
2022-08-06 05:50
#6
deepin-superuser

image.png

然后怎么打开
截图_选择区域_20220805214902.png

Reply View the author
寂静的羽夏
deepin
2022-08-06 07:27
#7
130******37

然后怎么打开
截图_选择区域_20220805214902.png

在终端输入 python3 就打开进入它的交互 Shell 了啊。请问你是想问其他的吗?

confused

Reply View the author
deepin-superuser
deepin
2022-08-06 16:28
#8
130******37

然后怎么打开
截图_选择区域_20220805214902.png

你想怎么用我怎么知道 这不是有 3.5 以上版本么

Reply View the author
吉吉如律令
deepin
2022-08-06 22:21
#9
翻过山峰看见云

推荐使用anaconda这类的软件管理python环境吧,可安装任意版本,并且不会影响系统

同意,deepin的dde里就带有python2和python3,一个折腾不好就把桌面给毁了

Reply View the author
130******37
deepin
2022-08-07 04:25
#10
寂静的羽夏

在终端输入 python3 就打开进入它的交互 Shell 了啊。请问你是想问其他的吗?

confused

截图_deepin-terminal_20220806202502.png

Reply View the author
寂静的羽夏
deepin
2022-08-07 05:12
#11
130******37

截图_deepin-terminal_20220806202502.png

你为啥要把3分开,python3 是一个整体。你这样是使用 python 的 2.7版本打开当前目录下的 3 文件

Reply View the author
130******37
deepin
2022-08-08 02:50
#12
寂静的羽夏

你为啥要把3分开,python3 是一个整体。你这样是使用 python 的 2.7版本打开当前目录下的 3 文件

那现在咋整啊,l am 小白

Reply View the author
寂静的羽夏
deepin
2022-08-08 02:56
#13
130******37

那现在咋整啊,l am 小白

还没听懂吗?直接在终端输入 python3啊。

Reply View the author
xuqi
deepin testing team
2022-08-08 05:21
#14

image.png

Reply View the author
xuqi
deepin testing team
2022-08-08 05:21
#15
  • 直接打开终端输入python3,不要分开~
Reply View the author
130******37
deepin
2022-08-10 05:15
#16
xuqi
  • 直接打开终端输入python3,不要分开~

解决了

Reply View the author