2017-04-16, 02:23
I had some issues when running `pip install -r requirements.txt` in Ubuntu Server 16.04.
I kept getting these errors.
I ended up having to install some packages first
After that, I was able to run `pip install -r requirements.txt` without errors and deploy the code to AWS
I kept getting these errors.
Code:
Failed cleaning build dir for cryptography
Code:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-BNnDST/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__)
;code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-6DwlqY-record/install-record.txt --single-vers
ion-externally-managed --compile" failed with error code 1 in /tmp/pip-build-BNnDST/cryptography/
I ended up having to install some packages first
Code:
sudo apt install build-essential libssl-dev libffi-dev python-dev
After that, I was able to run `pip install -r requirements.txt` without errors and deploy the code to AWS