Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: Cannot uninstall 'six' while pip install tld

Tags:

python

tld

six

$ pip install tld Collecting tld   Using cached https://files.pythonhosted.org/packages/fa/78/dbeaeb20db795c42deb81271fd65a35c040ce2e946024eaeef5c6b184176/tld-0.9-py2.py3-none-any.whl Collecting six>=1.9 (from tld)   Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl Installing collected packages: six, tld   Found existing installation: six 1.4.1 Cannot uninstall 'six'. 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. 

When installing tld module getting error of cannot uninstall existing 'six' module.

like image 761
D09r Avatar asked Jun 20 '18 17:06

D09r


People also ask

Can you uninstall packages with pip?

Packages can be uninstalled from a virtual environment using pip or pipenv.

Can not install with pip?

One of the most common problems with running Python tools like pip is the “not on PATH” error. This means that Python cannot find the tool you're trying to run in your current directory. In most cases, you'll need to navigate to the directory in which the tool is installed before you can run the command to launch it.


2 Answers

$ pip install tld Collecting tld   Using cached https://files.pythonhosted.org/packages/fa/78/dbeaeb20db795c42deb81271fd65a35c040ce2e946024eaeef5c6b184176/tld-0.9-py2.py3-none-any.whl Collecting six>=1.9 (from tld)   Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl Installing collected packages: six, tld   Found existing installation: six 1.4.1 Cannot uninstall 'six'. 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. 

If you're getting above error, then try the following command to install six-1.11.0 and tld-0.9.

$ pip install tld --ignore-installed six --user

$ pip install tld --ignore-installed six --user Collecting tld   Using cached https://files.pythonhosted.org/packages/fa/78/dbeaeb20db795c42deb81271fd65a35c040ce2e946024eaeef5c6b184176/tld-0.9-py2.py3-none-any.whl Collecting six   Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl Installing collected packages: six, tld Successfully installed six-1.11.0 tld-0.9 
like image 54
D09r Avatar answered Sep 22 '22 03:09

D09r


Use: pip install tld --ignore-installed six

like image 39
suresh Palemoni Avatar answered Sep 24 '22 03:09

suresh Palemoni