Python and PipEnv
Installation
Note that whatever the OS, you might sometimes need to disconnect and reconnect (reload your environment) before seeing python or pipenv in your PATH
.
python3.9
Python 3.9:
sudo apt-get install python3 \
python3-distutils \
python3-pip \
python3-setuptools
Install building tools:
sudo yum update -y
sudo yum install -y wget screen gcc gcc-c++ make openssl-devel libffi-devel xz-devel bzip2-devel ncurses-devel
Run the following script to install python 3.9 (3.9.Z with Z being the latest released found at https://www.python.org/ftp/python/):
pushd /usr/src || return
sudo wget https://www.python.org/ftp/python/3.9.Z/Python-3.9.Z.tgz
sudo tar xzf Python-3.9.Z.tgz
pushd ./Python-3.9.Z/ || return
sudo ./configure --enable-optimizations --with-ssl
sudo make -j
# install in order to replace default python
sudo make install
# If you wish to use this version of python system wide
sudo ln -s /usr/local/bin/python3 /usr/bin/python3
sudo rm /usr/src/Python-3.9.Z.tgz
popd || return
popd || return
Create a symbolic link so that our sudo user knows where to find the local pip3 install:
sudo ln -s /usr/local/bin/pip3 /usr/bin/pip3
Python 3.9:
sudo dnf -y install python39
Python 3.9:
# This version is already available by default so just update if it cannot yet be found.
sudo dnf -y update
PipEnv
First install and upgrade pip:
sudo apt-get install python3-pip -y
python3.9 -m pip install --upgrade pip
Then install PipEnv through pip:
python3 -m pip install -U pipenv
First install and upgrade pip:
sudo yum install python3-pip -y
python3.9 -m pip install --upgrade pip
Then install PipEnv through pip:
python3 -m pip install -U pipenv
First install and upgrade pip:
sudo dnf install python39-pip
python3.9 -m pip install --upgrade pip
Then install PipEnv through pip:
python3.9 -m pip install -U pipenv
First install and upgrade pip:
sudo dnf install python3-pip
python3.9 -m pip install --upgrade pip
Then install PipEnv through pip:
python3.9 -m pip install -U pipenv