Python PIP

installation

https://pip.pypa.io/en/stable/installation/

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3.8 get-pip.py

If your pip version does not match the python version, you need to reinstall in this way

错误解决办法

  1. UnicodeDecodeError

    UnicodeDecodeError: 'utf8' codec can't decode byte 0xd5 in position 24: invalid continuation byte
    

    http://stackoverflow.com/questions/25036897/pip-install-unicodedecodeerror

    解决办法:

    $ export LC_ALL="en_US.UTF-8"
    

使用方法

# 生成需求文件
$ pip freeze >requirements.txt
# 从需求文件安装
$ pip install -r requirements.txt

problems