Why is PIP raising an AssertionError on pip freeze?

前端 未结 7 510
耶瑟儿~
耶瑟儿~ 2020-12-14 14:32

My console:

desarrollador@desarrollador-HP-14-Notebook-PC1:~$ pip freeze  
Exception:  
Traceback (most recent call last):  
  File \"/usr/lib/python2.7/dist         


        
7条回答
  •  眼角桃花
    2020-12-14 15:28

    Your pip may be outdated. Even in Ubuntu 14.04 LTS, the pip version it installed using apt-get install python-pip was 1.5.4. Try updating pip manually, and possibly the new packages again as well.

    pip --version # 1.5.4
    curl -O https://bootstrap.pypa.io/get-pip.py
    sudo python get-pip.py
    pip --version # 6.0.8
    hash -r # reset bash cache
    

    https://pip.pypa.io/en/latest/installing.html

提交回复
热议问题