场景描述
需要从源代码编译安装python-3.6.1的版本
环境描述
Centos 7
安装步骤
1、解压缩python-xx.tgz
2、进入源代码目录
./configure
make & make install
碰到的问题:
Traceback (most recent call last):
File “/root/tools/Python-3.6.1/Lib/runpy.py”, line 193, in _run_module_as_main
“main“, mod_spec)
File “/root/tools/Python-3.6.1/Lib/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/root/tools/Python-3.6.1/Lib/ensurepip/main.py”, line 4, in
ensurepip._main()