sudo pip install virtualenv (install virtual virtualenv library)
virtualenv -p /usr/bin/python3.6 venv (create a virtual env)
source venv/bin/activate (activate the env)
pip install requirement.txt (install dependencies)
PgMigrator.py is to migrate postgres tables and mongoMigrator is to migrate mongo collections. uncomment the necessary functions to execute
PostgresDiff and mongoDiff can be used to compare and produce difference of two databases.
You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application
sudo apt-get install -y postgis postgresql-9.3-postgis-2.1 pip install psycopg2 or
sudo apt-get install libpq-dev python-dev pip install psycopg2
working -> sudo apt-get install libpq-dev python-dev pip install psycopg2
to exit virtualenv > deactivate
sudo apt-get install python3-pip
sudo pip3 install virtualenv
virtualenv venv
you can use any name insted of venv
virtualenv -p /usr/bin/python2.7 venv
source venv/bin/activate
source venv/bin/activate.fish
deactivate
virtualenv -p python3 myenv
python3 -m venv myenv