-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Basim Ramadhan edited this page May 22, 2017
·
11 revisions
Welcome to the lovelace-engine wiki!
-
Install Python 3.6 and pip if you don't already have them:
- Ubuntu/Debian:
sudo apt-get install python-pip
- Arch Linux:
sudo pacman -S python-pip
- See https://packaging.python.org/install_requirements_linux/ for other Linux distributions
- Ubuntu/Debian:
-
Install virtualenv if you don't already have it:
sudo pip install virtualenv
-
Go to the root of the lovelace-engine repo:
cd /path/to/lovelace-engine
-
Create the virtual environment:
make prepare-venv
-
Create a soft link to the problem files:
ln -s /path/to/lovelace-problems/problems ./problems
-
Create a soft link to the tutorial files:
ln -s /path/to/lovelace-problems/tutorials ./tutorials
-
That's it! Just make sure to execute
source env/bin/activate
whenever you need to explicitly use the virtual environment.
Sources:
- https://blog.dbrgn.ch/2012/9/18/virtualenv-quickstart/
- https://www.dabapps.com/blog/introduction-to-pip-and-virtualenv-python/
- Make sure you're virtual environment is set up:
make prepare-venv
- Make sure you're using the virtual environment:
source env/bin/activate
- Install the new library using pip:
env/bin/pip install <library-name>
- Update the requirements.txt file in our repository with the new library:
env/bin/pip freeze > requirements.txt
Sources: