Python basics

Requirements

Pipenv

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# Install
pip install pipenv

# Install a packages for the project
pipenv install <package>

# Activate Virtual Env
pipenv shell

# Run a script in the virtual env
pipenv run python <script.py>

Generate requirements.txt:

1
pipenv lock -r >> requirements.txt
Licensed under CC BY-NC-SA 4.0