Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on pip install on CentOS 7 #825

Open
StewAlexander-com opened this issue Mar 13, 2020 · 1 comment
Open

Error on pip install on CentOS 7 #825

StewAlexander-com opened this issue Mar 13, 2020 · 1 comment

Comments

@StewAlexander-com
Copy link

@StewAlexander-com StewAlexander-com commented Mar 13, 2020

Error:

ERROR: Cannot uninstall 'configobj'. 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.

[support@glyptodon ~]$ cat /etc/*release
CentOS Linux release 7.7.1908 (Core)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

Python 2.7.5

@pasenor
Copy link
Member

@pasenor pasenor commented Mar 14, 2020

Hi, you probably have package python-configobj installed (check with yum info python-configobj). On Centos 7 it has lower version than what mycli requires, and it cannot be upgraded by pip. You have two easy options:

  1. remove the system package manually: yum erase python-configobj, then pip install --upgrade mycli will install a newer version as a dependency. However, be cautious: if some other application depended on that earlier configobj version, it may break after the update.

  2. Install python3 and use its ecosystem for mycli:
    yum install python3
    pip3 install mycli
    I'd recommend the second option, especially since python2 support is going to be deprecated with the next mycli release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.