Difference between revisions of "Python Home"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
version='3.7.7' | version='3.7.7' | ||
− | yum -y install gcc openssl-devel zlib-devel wget | + | yum -y install gcc openssl-devel zlib-devel wget make |
wget https://www.python.org/ftp/python/$version/Python-$version.tgz | wget https://www.python.org/ftp/python/$version/Python-$version.tgz | ||
tar xzf Python-$version.tgz | tar xzf Python-$version.tgz |
Revision as of 21:09, 19 March 2020
Install From Source
#!/usr/bin/env bash set -eo pipefail version='3.7.7' yum -y install gcc openssl-devel zlib-devel wget make wget https://www.python.org/ftp/python/$version/Python-$version.tgz tar xzf Python-$version.tgz cd Python-$version ./configure --prefix=/usr/local #./configure --prefix=/usr/local --enable-optimizations make altinstall
or the easier way
Getting Started
Prep python virtual environment.
sudo apt-get install python3-venv mkdir app cd app python3 -m venv venv source venv/bin/activate pip install --upgrade pip wheel