Hello @Dilpreet ,
Have you tried updating pip version? which python and python-pip versions are you using?
If you are using python 3.x, Please try this commands to update:
sudo pip3 install --upgrade pip
sudo pip3 install virtualenv
Then You can install cryptography with:
$ pip install cryptography
However you can refer this docs
Hope this helps!!
Thank you!!