-
Notifications
You must be signed in to change notification settings - Fork 2
Install Python venv
Dave Lawrence edited this page Aug 8, 2024
·
2 revisions
We recommend Python 3.11 for the performance improvements
Python 3.12 is already installed on Ubuntu 24
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.11 python3.11-dev python3.11-venv
Install virtual env
cd /opt/variantgrid # Or wherever your install is
python3 -m venv env # This is recommended place - I added to .gitignore
source env/bin/activate
Seems to work best if you do this first:
python -m pip install --upgrade cython
python3 -m pip install psycopg2-binary
python3 -m pip install ipython # for nice shell
python3 -m pip install -r requirements.txt # Or requirements-dev.txt