Linux Python升级

       # wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tgz
       # tar -zxf Python-3.6.4.tgz 
       # cd Python-3.6.4
       # ./configure --with-ssl
       # make && make install
       
       # which python3			# 有些文档说要做ln,其实不用,
         /usr/local/bin/python3		# 安装完成后自己就做好了,

       # python3 -V
         Python 3.6.4

       # which pip3			# Python3源码编译自带pip3,
	 /usr/local/bin/pip3

       # ln -s /usr/local/bin/pip3 /usr/bin/pip3
		这样就好了 以后用python3 和pip3 执行命令

http://www.cnblogs.com/feng18/p/5854912.html

你可能感兴趣的:(python,python升级)