0

I have tried installing new python packages using pip. The installation fails and I get the following error:

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

I could determine that there are three builds of pytz version 2016.6.1. The version on my machine is build py35_0 and I want to uninstall it. How do I modify the prompt below to uninstall a specific build of a version of a package?

$ pip uninstall pytz==2016.6.1
Emma
  • 27,428
  • 11
  • 44
  • 69
Xipe
  • 1
  • https://stackoverflow.com/search?q=%5Bpip%5D+uninstall+distutils+installed+project – phd Aug 10 '19 at 23:34
  • Problem is the same and has been solved by by brut force. I specifically want to know how to uninstall a specific version and build of a package. – Xipe Aug 11 '19 at 07:39
  • You cannot uninstall with `pip` what `pip` didn't install. – phd Aug 11 '19 at 12:21
  • The pytz package was installed through pip. The distulise installed package warning is because there are three builds of the pytz version 2016.6.1 on of which is installed on my machine. So the question is still how to tell the machine, that it is build 'py35_0' which is installed and should be deleted. – Xipe Aug 11 '19 at 19:51

0 Answers0