• Aishwarya Pothula

Installing a Python version from terminal and creating virtualenv with a specific Python Version

To install a specific Python version visit https://www.python.org/ftp/python/ to check the versions available.

We are going to use Python3.5.4 installation example for this note

Enter the following commands in the terminal

To download the tar file

wget https://www.python.org/ftp/python/3.5.4/Python-3.5.4.tar.xz

To open the tar file

tar xf Python-3.5.4.tar.xz
cd python-3.5.4

To configure

./configure --enable-optimizations
sudo make -j 8
sudo make altinstall

Lastly, to check that the correct version is installed and that it is installed in the right path

which python3.5

Which should return /usr/local/bin/python3.5

To create a virtualenv with a specific python version,the command is

Example command: $ virtualenv -p /usr/local/bin/python3.5 venv
To activate: source venv/bin/activate

2 views0 comments

Recent Posts

See All

Exporting Individual Fbx Files from Motive Recordings The goal of this blog is to understand how to export individual mocap files from multi-skeleton mocap Motive videos and apply them to a model. You