标签:ase 技术 https python3.6 get startup ram python安装 源码包
登录:www.python.org,找到所需使用的Python安装包进行下载安装即可(windows,linux有自己获取安装包的办法)
注:如果要下载基于网页的安装程序: Download Windows x86-64 web-based installer(需联网)
如果要下载可执行的安装程序: Download Windows x86-64 executable installer(可直接安装)
如果要下载python程序的压缩包: Download Windows x86-64 embeddable zip file(嵌入式)
安装图形用户界面安装即可
1 yum groupinstall "Development tools" 2 yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel
1 wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz
1 tar -xvf Python-3.6.5.tgz
1 mkdir /usr/local/python3
1 ./configure --prefix=/usr/local/python3
1 make #编译 2 make install #安装
1 ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3 #也可将原有Python软连接删除后再创建 2 cd /usr/bin #进入此目录 3 ll | grep python #查看现有Python有关软连接删除原有Python软连接(此连接为系统默认的软连接2.6.7 4 rm -vf python #删除已有软连接 5 ln -s /usr/local/python3/bin/python3.6 /usr/bin/python #创建新的连接
1 vim ~/.bash_profile #编辑此文件 2 # .bash_profile 3 # Get the aliases and functions 4 if [ -f ~/.bashrc ]; then 5 . ~/.bashrc 6 fi 7 # User specific environment and startup programs 8 PATH=$PATH:$HOME/bin:/usr/local/python3/bin 9 export PATH 10 按ESC,输入:wq回车退出。 11 修改完记得执行行下面的命令,让上一步的修改生效: 12 source ~/.bash_profile
1 python3 -V #检查Python 2 Python 3.6.5 #回显信息 3 pip3 -V #检查pip3 4 pip 9.0.1 from /usr/local/python3/lib/python3.6/site-packages (python 3.6) #回显信息
1 ln -s /usr/local/python3/bin/pip3 /usr/bin/pip3
标签:ase 技术 https python3.6 get startup ram python安装 源码包
原文地址:https://www.cnblogs.com/TigerAt/p/9024691.html