The programs of these repositories have been written for python3.
It is recommended to use a virtual environment for running the programs.
Managing a virtual environment with Pycharm
If you can install Pycharm on your machine, I think it is the easiest and generic way for dealing with virtual environment. More help at this link: https://www.jetbrains.com/pycharm/help/creating-virtual-environment.html Then , if you are happy to manage the virtual environment with Pycharm, you can ignore the following, which are insructions for managing the virtual environment through the command shell.
If the computer is running python3 by default
You can use the pyvenv command.
On UNIX systems (Linux and OSX), the command is:
pyvenv venv
On WINDOWS system, the command is:
c:\Temp>c:\Python35\python -m venv myenv
Once created, you need to activate it:
source venv/bin/activate
to deactivate it:
deactivate
Or if the computer is running python2 by default
You will have to use the program virtualenv
You can install virtualenv with pip.
pip install virtualenv
Pip is a package manager program installed by default with Python 2 >=2.7.9 or Python 3 >=3.4.
Else, you can install pip by downloading the script get-pip.py and running python get-pip.py
On UNIX systems (Linux and OSX):
To create a virtual environment using virtualenv with a python3 interpreter (that we precise with the option -p):
virtualenv -p /usr/bin/python3.4 venv
and activate it with:
source venv/bin/activate
to deactivate it:
deactivate
On WINDOWS system:
To create a virtual environment using virtualenv with a python3 interpreter (that we precise with the option -p):
virtualenv -p /path/to/python3.exe venv
the equivalent activate script is in the Scripts folder:
\path\to\env\Scripts\activate
to deactivate it:
deactivate
NB: To create a virtualenv under a path with spaces in it on Windows, you’ll need the win32api library installed.