Difference between revisions of "Python Home"

From UVOO Tech Wiki
Jump to navigation Jump to search
(Created page with "# 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...")
 
Line 1: Line 1:
 +
## Install From Source
 +
```
 +
#!/usr/bin/env bash
 +
set -eo pipefail
 +
 +
version='3.7.7'
 +
yum -y install gcc openssl-devel zlib-devel wget
 +
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
 
# Getting Started
  

Revision as of 21:07, 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
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