python学习笔记记录一:环境安装
2018-03-04 本文已影响0人
程序小白菜
1、下载python源码

2、在/usr/local/src 下运行命令 wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
3、解压源码包 tar zxvf Python-3.6.4.tgz
4、配置编译参数 python 运行命令 ./configure --prefix=/usr/local/python-3.6.4
5、编译python, 运行命令make
6、安装 make install

7、到/user/local/python-3.6.4/bin
8、运行 ./python.3.6

9、配置环境变量
(1) 软连接方式 ln -s /usr/local/python-3.6.4/bin/python.3.6 /bin/python3.6.4

(2)配置环境变量参数
