Ben Chuanlong Du's Blog

It is never too late to learn.

Issues in pip and Solutions

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The issue is due to to pyopenssl using old dependencies. It can be fixed by removing the Python package cryptography package and then upgrading cryptography to version 2.8.

  1. Find the location of the Python package cryptography.

    pip3 show cryptograph
    
  2. Remove the whole package directory.

    sudo rm -rf /path/to/cryptograph
    
  3. Reinstall the latest version of cryptograph.

    pip3 install cryptograph
    

https://github.com/pypa/pip/issues/7254

Comments