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

gh0stwin/crc-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Repository to develop CRC project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages