[Python] 安装与环境配置
程序员文章站
2022-04-12 16:15:03
...
centos 安装python3
必要工具
# yum -y groupinstall "Development tools"
# yum -y install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel readline readline-devel libffi-devel
下载安装
# wget https://www.python.org/ftp/python/3.7.0/Python-3.7.0.tar.xz
# wget https://www.python.org/ftp/python/3.8.5/Python-3.8.5.tar.xz
# tar -xvf Python-3.7.0.tar.xz
# ./configure --prefix=/usr/local/python3
# make && make install
# ln -s /usr/local/python3/bin/python3 /usr/local/bin/python3
# ln -s /usr/local/python3/bin/pip3 /usr/local/bin/pip3
# python3 -V
添加环境变量
# vim ~/.bashrc
export PATH=$PATH:/usr/local/python3/bin/
# source .bashrc
更新pip
# pip3 install --upgrade pip
# pip3 list
Package Version
---------- -------
pip 20.0.2
setuptools 39.0.1
virtualenv 16.7.9
上一篇: js post提交调用方法_javascript技巧
下一篇: Node之加密与解密处理
推荐阅读
-
MMS 监控代理安装与配置(8)
-
安装、配置和测试Windows,Apache,Informix与PHP服务器的分步指南_PHP教程
-
java学习+JDK下载安装环境配置+IDEA安装下载简单使用
-
Python测试开源工具splinter安装与使用教程
-
Ubuntu中Nginx的安装与配置详细说明
-
Windows7下PHP开发环境安装配置图文方法_PHP教程
-
MySQL5.6 数据库主从(Master/Slave)同步安装与配置详解
-
Linux中RedHat下安装Python2.7开发环境的详细介绍
-
Windows 上 Nginx + PHP5 的安装与配置
-
ubuntu服务器环境下安装python的方法