H5W3
当前位置:H5W3 > python > 正文

【Python】Python3 安装及常用包安装

Python3 安装及常用包安装

Wayne发布于 14 分钟前
一、安装Python3

1、安装依赖包

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 libffi-devel

2、下载并解压Python3安装包

wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz
tar -zxf Python-3.6.9.tgz
cd Python-3.6.9
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.6 /usr/bin/pip3
python3 -V
pip3 -V

3、安装常用模块

**# 安装kafka模块**
pip3 install kafka-python
**#安装ES模块**
pip3 install elasticsearch
pythonpython3.xkafka
阅读 14更新于 9 分钟前
本作品系原创,采用《署名-非商业性使用-禁止演绎 4.0 国际》许可协议
avatar

Wayne
1 声望
0 粉丝

0 条评论
得票时间

avatar

Wayne
1 声望
0 粉丝

宣传栏
一、安装Python3

1、安装依赖包

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 libffi-devel

2、下载并解压Python3安装包

wget https://www.python.org/ftp/python/3.6.9/Python-3.6.9.tgz
tar -zxf Python-3.6.9.tgz
cd Python-3.6.9
./configure --prefix=/usr/local/python3
make && make install
ln -s /usr/local/python3/bin/python3.6 /usr/bin/python3
ln -s /usr/local/python3/bin/pip3.6 /usr/bin/pip3
python3 -V
pip3 -V

3、安装常用模块

**# 安装kafka模块**
pip3 install kafka-python
**#安装ES模块**
pip3 install elasticsearch

本文地址:H5W3 » 【Python】Python3 安装及常用包安装

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址