Use python virtual environment

To create a virtualenv in python 3 type the following command:

python3 -m venv my_venv

Once the command finishes, you need to run the following command to start your new venv

source my_venv/bin/activate

Now you should see the terminal prompt will start with the name of the virtual env:

(my_venv) ➜  current_directory

Install your dependencies

pip install pandas
pip install bf4 # BeautifulSoup 4

Export python libraries

pip freeze > requirements.txt

Install necessary libraries on another system or on next build

pip install -r requirements.txt

Stop virtualenv