Difference between revisions of "Python Home"

From UVOO Tech Wiki
Jump to navigation Jump to search
Line 1: Line 1:
## Install From Source
+
[ Python Install Methods ]
```
+
 
#!/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
 
or the easier way

Revision as of 21:10, 19 March 2020

[ Python Install Methods ]

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