This repository was created to develop both project 1 and project 2 of Network Science course.
# install python
brew install python
# install pip
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --user
rm get-pip.py
I recommend creating a new python environment to install all packages required for both projects. This way you will protect both the python's global environment and the environment needed to develop this project. To do this run:
brew install graph-tool
pip3 install virtualenv
cd <path-to-crc-project-folder>
virtualenv venv
source venv/bin/activate
pip install -r requirements.txt
echo "/usr/local/Cellar/graph-tool/2.29_1/lib/python3.7/site-packages" > ./venv/lib/python3.7/site-packages/graph-tool.pth
deactivate
Eact time you want to run python you have to activate the project's environment and then run your script:
source venv/bin/activate
python run_my_script.py
To desactivate the project's private environment just run:
deactivate