C:\Python27>python -m pip install --upgrade pip
โค้ด: เลือกทั้งหมด
Collecting pip
Downloading https://files.pythonhosted.org/packages/54/0c/d01aa759fdc501a58f431eb594a17495f15b88da142ce14b5845662c13f3/pip-20.0.2-py2.py3-none-any.whl (1.4MB)
100% |################################| 1.4MB 335kB/s
Installing collected packages: pip
Found existing installation: pip 7.1.2
Uninstalling pip-7.1.2:
Successfully uninstalled pip-7.1.2
โค้ด: เลือกทั้งหมด
C:\Python27>python -m pip install psycopg2
โค้ด: เลือกทั้งหมด
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting psycopg2
Downloading psycopg2-2.8.5-cp27-cp27m-win_amd64.whl (1.1 MB)
|################################| 1.1 MB 882 kB/s
Installing collected packages: psycopg2
Successfully installed psycopg2-2.8.5