Code/Python

pip 19.0.1로 업그레이드하는 방법(윈도우에서 업그레이드가 안 되는 경우)

kolbe_starziki 2019. 2. 4. 16:19

18.1은 잘 깔리던 게 19.0.1은 잘 안 깔린다.


18.1의 잔재가 있어서 그런 듯하다.


You are using pip version 18.1, however version 19.0.1 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.


업그레이드를 해라고 하지만...


>python -m pip install --upgrade pip 

업그레이드하자고 하면


Rolling back uninstall of pip

Exception:

Traceback (most recent call last): ~~~~\Python\Python37\site-packages\pip\_internal\cli\base_command.py" , line 143, in main

    status = self.run(options, args)


You are using pip version 18.1, however version 19.0.1 is available.

You should consider upgrading via the 'python -m pip install --upgrade pip' command.


다시 붉은 색 예외가 뜨면서 설치가 안된다.


easy_install로 해도 설치가 안된다.


그래서 찾아보았다.


그러니... 


>python -m pip uninstall pip setuptools


pip와 setuptools를 삭제하고


https://bootstrap.pypa.io/get-pip.py


여기에 있는 걸 받고


python get-pip.py를 실행시키면 된다.


Collecting pip

  Using cached https://files.pythonhosted.org/packages/46/dc/7fd5df840efb3e56c8b4f768793a237ec4ee59891959d6a215d63f727023/pip-19.0.1-py2.py3-none-any.whl

Collecting setuptools

  Downloading https://files.pythonhosted.org/packages/82/9c/e812a9838feaf76cd9a960ca4ced3be7f2db31e473677a621d006e128db2/setuptools-40.7.3-py2.py3-none-any.whl (574kB)

    100% |████████████████████████████████| 583kB 6.8MB/s

Installing collected packages: pip, setuptools

  Found existing installation: pip 19.0.1

    Uninstalling pip-19.0.1:

      Successfully uninstalled pip-19.0.1

Successfully installed pip-19.0.1 setuptools-40.7.3