码迷,mamicode.com
首页 > 编程语言 > 详细

Python源码编译安装

时间:2019-10-22 01:06:21      阅读:122      评论:0      收藏:0      [点我收藏+]

标签:ftp   bre   libc   dev   virtual   configure   bss   pip   make   

 

apt-get install zlib1g-dev libbz2-dev libssl-dev libncurses5-dev libsqlite3-dev
libreadline-dev tk-dev libgdbm-dev libdb-dev libpcap-dev xz-utils libexpat1-dev
liblzma-dev libffi-dev libc6-dev

wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tgz

cd /usr/local

tar -zxvf Python-3.6.2.tgz

cd Python-3.6.2

./configure

make

make install

ln -s /usr/local/bin/python3.6 /usr/bin/python3
ln -s /usr/local/bin/pip3 /usr/bin/pip3

pip3 install virtualenv


virtualenv -p /usr/local/bin/python3.6 --no-site-packages venv

source my_project/bin/activate

Python源码编译安装

标签:ftp   bre   libc   dev   virtual   configure   bss   pip   make   

原文地址:https://www.cnblogs.com/tianboblog/p/11717210.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!