Installation
To install using get-pip.py use the -force-reinstall flag:
$ python get-pip.py --force-reinstall
Obviously, this is before fixing the problem https://github.com/pypa/pip/issues/5220
Import from pip
If you have import from pip, for example:
from pip.req import parse_requirements
he will break. Since they are now moved to pip._internal as such:
from pip._internal.req import parse_requirements
However, you will have to use something similar for backward compatibility:
try:
from pip._internal.req import parse_requirements
except ImportError:
from pip.req import parse_requirements
Attention!
, , pip , - , : https://pip.pypa.io/en/latest/user_guide/#using-pip-from-your-program p >