Install virtual env pip install virtualenv Go to your project directory cd project Create virtual env python3 -m venv yourenv Start virtual env # Windows .\yourenv\Scripts\activate # Linux source yourenv/bin/activate Stop deactivate Deployment on different machine On local machine pip freeze > requirement.txt On target machine, create an empty env virtualevn --no-site-packages tourenv Now activate newly created env and install from requirement.txt .\tourenv\Scripts\activate pip install -r requirement.txt Venv in Jupyter Notebook activate yuenv Install it pip install ipykernel Run this comman ipython kernel install --user --name=yuenv Now open jupyter notebook from the env. jupyter notebook Once notebook is opened, select kernel> change kernel > yuenv Done