Skip to main content

pip로 패키지 설치시 requests메시지 출력하면서 에러나는 경우

pip에서 docker-compose 설치할떄

아래 메시지 띄우면서 설치가 안될 경우.. python-requests패키지가 yum으로 설치되어 있어서 충돌 발생.

$> pip install docker-compose
ERROR: Cannot uninstall 'requests'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

그때는 설치되어 있는 패키지는 추가 설치 없이 구성하도록 설치

$> pip install docker-compose --ignore-installed
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. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at
WARNING: Running pip install with root privileges is generally not a good idea. Try `pip install --user` instead.
Collecting docker-compose
  Using cached docker_compose-1.26.2-py2.py3-none-any.whl (139 kB)
Collecting awscli
  Downloading awscli-1.19.112-py2.py3-none-any.whl (3.6 MB)
     |████████████████████████████████| 3.6 MB 2.2 MB/s
Collecting botocore
  Downloading botocore-1.20.112-py2.py3-none-any.whl (7.7 MB)
     |████████████████████████████████| 7.7 MB 61.8 MB/s
Collecting distro<2,>=1.5.0
  Using cached distro-1.6.0-py2.py3-none-any.whl (19 kB)
Collecting backports.ssl-match-hostname<4,>=3.5; python_version < "3.5"
  Using cached backports.ssl_match_hostname- (5.7 kB)
Collecting docopt<1,>=0.6.1
  Using cached docopt-0.6.2.tar.gz (25 kB)
Collecting dockerpty<1,>=0.4.1
  Using cached dockerpty-0.4.1.tar.gz (13 kB)
Collecting texttable<2,>=0.9.0
  Using cached texttable-1.6.4-py2.py3-none-any.whl (10 kB)
Collecting cached-property<2,>=1.2.0
  Using cached cached_property-1.5.2-py2.py3-none-any.whl (7.6 kB)
Collecting PyYAML<6,>=3.10
  Using cached PyYAML-5.4.1-cp27-cp27mu-manylinux1_x86_64.whl (574 kB)
Collecting subprocess32<4,>=3.5.4; python_version < "3.2"
  Using cached subprocess32-3.5.4-cp27-cp27mu-manylinux2014_x86_64.whl (69 kB)
Collecting backports.shutil-get-terminal-size==1.0.0; python_version < "3.3"
  Using cached backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl (6.5 kB)
Collecting enum34<2,>=1.0.4; python_version < "3.4"
  Using cached enum34-1.1.10-py2-none-any.whl (11 kB)
Collecting requests<3,>=2.20.0
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting websocket-client<1,>=0.32.0
  Using cached websocket_client-0.59.0-py2.py3-none-any.whl (67 kB)
Collecting jsonschema<4,>=2.5.1
  Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting python-dotenv<1,>=0.13.0
  Using cached python_dotenv-0.18.0-py2.py3-none-any.whl (18 kB)
Collecting six<2,>=1.3.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting ipaddress<2,>=1.0.16; python_version < "3.3"
  Using cached ipaddress-1.0.23-py2.py3-none-any.whl (18 kB)
Collecting docker[ssh]<5,>=4.2.2
  Using cached docker-4.4.4-py2.py3-none-any.whl (147 kB)
Collecting rsa<=4.5.0,>=3.1.2; python_version == "2.7"
  Downloading rsa-4.5-py2.py3-none-any.whl (36 kB)
Collecting colorama<0.4.4,>=0.2.5
  Downloading colorama-0.4.3-py2.py3-none-any.whl (15 kB)
Collecting docutils<0.16,>=0.10
  Downloading docutils-0.15.2-py2-none-any.whl (548 kB)
     |████████████████████████████████| 548 kB 59.7 MB/s
Collecting s3transfer<0.5.0,>=0.4.0
  Downloading s3transfer-0.4.2-py2.py3-none-any.whl (79 kB)
     |████████████████████████████████| 79 kB 13.1 MB/s
Collecting jmespath<1.0.0,>=0.7.1
  Downloading jmespath-0.10.0-py2.py3-none-any.whl (24 kB)
Collecting python-dateutil<3.0.0,>=2.1
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     |████████████████████████████████| 247 kB 68.0 MB/s
Collecting urllib3<1.27,>=1.25.4
  Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting idna<3,>=2.5; python_version < "3"
  Using cached idna-2.10-py2.py3-none-any.whl (58 kB)
Collecting chardet<5,>=3.0.2; python_version < "3"
  Using cached chardet-4.0.0-py2.py3-none-any.whl (178 kB)
Collecting functools32; python_version < "3"
  Using cached functools32-3.2.3-2.tar.gz (31 kB)
Collecting pyrsistent>=0.14.0
  Using cached pyrsistent-0.16.1.tar.gz (108 kB)
Collecting setuptools
  Using cached setuptools-44.1.1-py2.py3-none-any.whl (583 kB)
Collecting importlib-metadata; python_version < "3.8"
  Using cached importlib_metadata-2.1.2-py2.py3-none-any.whl (10 kB)
Collecting attrs>=17.4.0
  Using cached attrs-21.4.0-py2.py3-none-any.whl (60 kB)
Collecting typing; python_version < "3.5"
  Using cached typing- (26 kB)
Collecting paramiko>=2.4.2; extra == "ssh"
  Using cached paramiko-2.9.1-py2.py3-none-any.whl (210 kB)
Collecting pyasn1>=0.1.3
  Downloading pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
     |████████████████████████████████| 77 kB 11.8 MB/s
Collecting futures<4.0.0,>=2.2.0; python_version == "2.7"
  Downloading futures-3.3.0-py2-none-any.whl (16 kB)
Collecting contextlib2; python_version < "3"
  Using cached contextlib2-0.6.0.post1-py2.py3-none-any.whl (9.8 kB)
Collecting pathlib2; python_version < "3"
  Using cached pathlib2-2.3.6-py2.py3-none-any.whl (17 kB)
Collecting zipp>=0.5
  Using cached zipp-1.2.0-py2.py3-none-any.whl (4.8 kB)
Collecting configparser>=3.5; python_version < "3"
  Using cached configparser-4.0.2-py2.py3-none-any.whl (22 kB)
Collecting cryptography>=2.5
  Using cached cryptography-3.3.2-cp27-cp27mu-manylinux2010_x86_64.whl (2.6 MB)
Collecting pynacl>=1.0.1
  Using cached PyNaCl-1.4.0-cp27-cp27mu-manylinux1_x86_64.whl (964 kB)
Collecting bcrypt>=3.1.3
  Using cached bcrypt-3.1.7-cp27-cp27mu-manylinux1_x86_64.whl (59 kB)
Collecting scandir; python_version < "3.5"
  Using cached scandir-1.10.0.tar.gz (33 kB)
Collecting cffi>=1.12
  Using cached cffi-1.15.0-cp27-cp27mu-manylinux1_x86_64.whl (393 kB)
Collecting pycparser
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Using legacy ' install' for backports.ssl-match-hostname, since package 'wheel' is not installed.
Using legacy ' install' for docopt, since package 'wheel' is not installed.
Using legacy ' install' for dockerpty, since package 'wheel' is not installed.
Using legacy ' install' for functools32, since package 'wheel' is not installed.
Using legacy ' install' for pyrsistent, since package 'wheel' is not installed.
Using legacy ' install' for scandir, since package 'wheel' is not installed.
Installing collected packages: distro, backports.ssl-match-hostname, docopt, six, dockerpty, texttable, cached-property, PyYAML, subprocess32, backports.shutil-get-terminal-size, enum34, certifi, urllib3, idna, chardet, requests, websocket-client, functools32, pyrsistent, setuptools, contextlib2, scandir, pathlib2, zipp, configparser, importlib-metadata, attrs, jsonschema, typing, python-dotenv, ipaddress, pycparser, cffi, cryptography, pynacl, bcrypt, paramiko, docker, docker-compose, pyasn1, rsa, colorama, docutils, jmespath, python-dateutil, botocore, futures, s3transfer, awscli
    Running install for backports.ssl-match-hostname ... done
    Running install for docopt ... done
    Running install for dockerpty ... done
    Running install for functools32 ... done
    Running install for pyrsistent ... done
    Running install for scandir ... done
Successfully installed PyYAML-5.4.1 attrs-21.4.0 awscli-1.19.112 backports.shutil-get-termin