Step one: install pip3 [1]
- Execute
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
to get pip installation script. - Execute
sudo -H python3 get-pip.py
to install pip3 (cryptography needs python3 as a result we should install pip3)
- Run
sudo apt-get install python3.6-dev libmysqlclient-dev
- Install cryptography library for current user by
pip3 install cryptography --user