Difference between revisions of "Python Home"

From UVOO Tech Wiki
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
## Install From Source
+
[[ Python Install Methods ]]
```
+
 
#!/usr/bin/env bash
+
[[ Python Examples ]]
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

Latest revision as of 17:43, 4 August 2020

Python Install Methods

Python Examples

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