Home - fri-it2/nbp GitHub Wiki
Setup for nbp
Requirements
- Python >= 3.6
- git
Ubuntu 18
sudo apt-get install build-essential libssl-dev libffi-dev python3-pip sshpass git
CentOS 7
sudo yum install python3-pip sshpass
MacOS
sudo easy_install pip
For sshpass read this
Installation
Setup virtualenvwrapper. You can look at official documentation or follow instructions below:
sudo pip install virtualenv virtualenvwrapper
echo 'export WORKON_HOME=$HOME/.virtualenvs' >> ~/.bashrc
echo 'source /usr/local/bin/virtualenvwrapper.sh' >> ~/.bashrc
For MacOS also run: echo '[ -r ~/.bashrc ] && source ~/.bashrc' >> .bash_profile
In sub-folder install/
we have different requirements files. To install the
latest, run the following commands:
git clone https://github.com/fri-it2/nbp.git
cd nbp
mkvirtualenv nbp -p "$(which python3)" -a "$(pwd)" -r $(ls ./install/*.nbp | tail -1)
To activate or exit virtual environment : workon nbp
& deactivate
.