Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Latest commit

 

History

History
38 lines (34 loc) · 1.2 KB

README.md

File metadata and controls

38 lines (34 loc) · 1.2 KB

This repository was created to develop both project 1 and project 2 of Network Science course.

Dependencies

Install python

# 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

Install python packages

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

Run Code

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