{"action":"created","issue":{"url":"https://api.github.com/repos/pypa/pip/issues/5247","repository_url":"https://api.github.com/repos/pypa/pip","labels_url":"https://api.github.com/repos/pypa/pip/issues/5247/labels{/name}","comments_url":"https://api.github.com/repos/pypa/pip/issues/5247/comments","events_url":"https://api.github.com/repos/pypa/pip/issues/5247/events","html_url":"https://github.com/pypa/pip/issues/5247","id":314574592,"node_id":"MDU6SXNzdWUzMTQ1NzQ1OTI=","number":5247,"title":"Upgrading to pip 10:  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.","user":{"login":"ramonamis","id":4719415,"node_id":"MDQ6VXNlcjQ3MTk0MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/4719415?v=4","gravatar_id":"","url":"https://api.github.com/users/ramonamis","html_url":"https://github.com/ramonamis","followers_url":"https://api.github.com/users/ramonamis/followers","following_url":"https://api.github.com/users/ramonamis/following{/other_user}","gists_url":"https://api.github.com/users/ramonamis/gists{/gist_id}","starred_url":"https://api.github.com/users/ramonamis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramonamis/subscriptions","organizations_url":"https://api.github.com/users/ramonamis/orgs","repos_url":"https://api.github.com/users/ramonamis/repos","events_url":"https://api.github.com/users/ramonamis/events{/privacy}","received_events_url":"https://api.github.com/users/ramonamis/received_events","type":"User","site_admin":false},"labels":[{"id":453725964,"node_id":"MDU6TGFiZWw0NTM3MjU5NjQ=","url":"https://api.github.com/repos/pypa/pip/labels/T:%20support","name":"T: support","color":"bfdadc","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-04-16T09:44:36Z","updated_at":"2018-08-23T21:06:36Z","closed_at":"2018-04-16T12:16:57Z","author_association":"NONE","body":"* Pip version: 10.0.0\r\n* Python version: 2.7\r\n* Operating system: Amazon ECS-Optimized Amazon Linux AMI 2017.09.i\r\n\r\n### Description:\r\n\r\nI am trying to install docker-py, it is a usual part of our infrastructure setup workflow and we run it for quite some time. I get the following error for some packages:\r\n\r\n```\r\nCannot uninstall 'PyYAML'. 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.\r\n```\r\n\r\nEverything works as expected with pip 9.0.2. Did something change? What can I do to fix this? (except pinning the version of pip to 9.0.2 or 9.0.3)\r\n\r\n### What I've run:\r\nFirst installation attempt with pip 10\r\n\r\n```\r\n# /usr/local/bin/pip2 install docker-py\r\nCollecting docker-py\r\n  Using cached docker_py-1.10.6-py2.py3-none-any.whl\r\nRequirement already satisfied: six>=1.4.0 in /usr/local/lib/python2.7/site-packages (from docker-py) (1.11.0)\r\nRequirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < \"3.5\" in /usr/local/lib/python2.7/site-packages (from docker-py) (3.5.0.1)\r\nRequirement already satisfied: ipaddress>=1.0.16; python_version < \"3.3\" in /usr/local/lib/python2.7/site-packages (from docker-py) (1.0.22)\r\nRequirement already satisfied: websocket-client>=0.32.0 in /usr/local/lib/python2.7/site-packages (from docker-py) (0.47.0)\r\nCollecting requests!=2.11.0,>=2.5.2 (from docker-py)\r\n  Using cached requests-2.18.4-py2.py3-none-any.whl\r\nCollecting docker-pycreds>=0.2.1 (from docker-py)\r\n  Using cached docker_pycreds-0.2.2-py2.py3-none-any.whl\r\nRequirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python2.7/site-packages (from requests!=2.11.0,>=2.5.2->docker-py) (2.6)\r\nRequirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/site-packages (from requests!=2.11.0,>=2.5.2->docker-py) (1.22)\r\nRequirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/site-packages (from requests!=2.11.0,>=2.5.2->docker-py) (2018.1.18)\r\nCollecting chardet<3.1.0,>=3.0.2 (from requests!=2.11.0,>=2.5.2->docker-py)\r\n  Using cached chardet-3.0.4-py2.py3-none-any.whl\r\nInstalling collected packages: chardet, requests, docker-pycreds, docker-py\r\n  Found existing installation: chardet 2.0.1\r\nCannot uninstall 'chardet'. 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.\r\n```\r\n\r\nDowngraded to pip 9.0.3 and then got this:\r\n```\r\n# /usr/local/bin/pip2 install docker-py\r\nCollecting docker-py\r\n  Cache entry deserialization failed, entry ignored\r\n  Cache entry deserialization failed, entry ignored\r\n  Downloading docker_py-1.10.6-py2.py3-none-any.whl (50kB)\r\n    100% |████████████████████████████████| 51kB 4.8MB/s\r\nRequirement already satisfied: six>=1.4.0 in /usr/local/lib/python2.7/site-packages (from docker-py)\r\nRequirement already satisfied: backports.ssl-match-hostname>=3.5; python_version < \"3.5\" in /usr/local/lib/python2.7/site-packages (from docker-py)\r\nRequirement already satisfied: ipaddress>=1.0.16; python_version < \"3.3\" in /usr/local/lib/python2.7/site-packages (from docker-py)\r\nRequirement already satisfied: websocket-client>=0.32.0 in /usr/local/lib/python2.7/site-packages (from docker-py)\r\nCollecting requests!=2.11.0,>=2.5.2 (from docker-py)\r\n  Cache entry deserialization failed, entry ignored\r\n  Cache entry deserialization failed, entry ignored\r\n  Downloading requests-2.18.4-py2.py3-none-any.whl (88kB)\r\n    100% |████████████████████████████████| 92kB 8.2MB/s\r\nCollecting docker-pycreds>=0.2.1 (from docker-py)\r\n  Cache entry deserialization failed, entry ignored\r\n  Cache entry deserialization failed, entry ignored\r\n  Downloading docker_pycreds-0.2.2-py2.py3-none-any.whl\r\nRequirement already satisfied: idna<2.7,>=2.5 in /usr/local/lib/python2.7/site-packages (from requests!=2.11.0,>=2.5.2->docker-py)\r\nRequirement already satisfied: urllib3<1.23,>=1.21.1 in /usr/local/lib/python2.7/site-packages (from requests!=2.11.0,>=2.5.2->docker-py)\r\nRequirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python2.7/site-packages (from requests!=2.11.0,>=2.5.2->docker-py)\r\nCollecting chardet<3.1.0,>=3.0.2 (from requests!=2.11.0,>=2.5.2->docker-py)\r\n  Cache entry deserialization failed, entry ignored\r\n  Cache entry deserialization failed, entry ignored\r\n  Downloading chardet-3.0.4-py2.py3-none-any.whl (133kB)\r\n    100% |████████████████████████████████| 143kB 7.7MB/s\r\nInstalling collected packages: chardet, requests, docker-pycreds, docker-py\r\n  Found existing installation: chardet 2.0.1\r\n    DEPRECATION: Uninstalling a distutils installed project (chardet) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.\r\n    Uninstalling chardet-2.0.1:\r\n      Successfully uninstalled chardet-2.0.1\r\n  Found existing installation: requests 1.2.3\r\n    Uninstalling requests-1.2.3:\r\n      Successfully uninstalled requests-1.2.3\r\nSuccessfully installed chardet-3.0.4 docker-py-1.10.6 docker-pycreds-0.2.2 requests-2.18.4\r\nYou are using pip version 9.0.3, however version 10.0.0 is available.\r\nYou should consider upgrading via the 'pip install --upgrade pip' command.\r\n```\r\n\r\nI also noticed issues with installing awscli, it complains some packages are not installed. (Installing them first fixes the issue though).\r\n\r\nIf i try to forcereinstall awscli for example, I get the same error for PyYAML:\r\n```\r\n 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. ```"},"comment":{"url":"https://api.github.com/repos/pypa/pip/issues/comments/415571153","html_url":"https://github.com/pypa/pip/issues/5247#issuecomment-415571153","issue_url":"https://api.github.com/repos/pypa/pip/issues/5247","id":415571153,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTU3MTE1Mw==","user":{"login":"JohnBDonner","id":5995056,"node_id":"MDQ6VXNlcjU5OTUwNTY=","avatar_url":"https://avatars3.githubusercontent.com/u/5995056?v=4","gravatar_id":"","url":"https://api.github.com/users/JohnBDonner","html_url":"https://github.com/JohnBDonner","followers_url":"https://api.github.com/users/JohnBDonner/followers","following_url":"https://api.github.com/users/JohnBDonner/following{/other_user}","gists_url":"https://api.github.com/users/JohnBDonner/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnBDonner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnBDonner/subscriptions","organizations_url":"https://api.github.com/users/JohnBDonner/orgs","repos_url":"https://api.github.com/users/JohnBDonner/repos","events_url":"https://api.github.com/users/JohnBDonner/events{/privacy}","received_events_url":"https://api.github.com/users/JohnBDonner/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T21:06:36Z","updated_at":"2018-08-23T21:06:36Z","author_association":"NONE","body":"This seems to fix the issue for me: https://github.com/blockstack/blockstack-core/issues/504\r\n```\r\npip install docker-py --ignore-installed ${PACKAGE_NAME}\r\n```"}}
{"actor":{"display_login":"JohnBDonner"}}