nameerror
:/opt/python# python3 install_python.py
请输入你想安装的python版本(2.7-3.5)3.5
--2022-08-21 22:47:03-- https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz
正在解析主机 www.python.org (www.python.org)... 151.101.108.223, 2a04:4e42:1a::223
正在连接 www.python.org (www.python.org)|151.101.108.223|:443... 已连接。
已发出 HTTP 请求,正在等待回应... 200 OK
长度: 20566643 (20M) [application/octet-stream]
正在保存至: “Python-3.5.2.tgz”
Python-3.5.2.tgz 100%[==============================================================================================================>] 19.61M 6.14MB/s 用时 3.2s
2022-08-21 22:47:08 (6.14 MB/s) - 已保存 “Python-3.5.2.tgz” [20566643/20566643])
Traceback (most recent call last):
File "install_python.py", line 32, in <module>
package_name == "Python-3.5.2"
NameError: name 'package_name' is not defined