0

I am trying to replicate a Python environment on an offline, airgapped machine

I have ported over via disc the .whl files I need for all of my Python packages to the new machine. For reasons I don't particularly want to get into here, I'd like to be able to use the default Python interpreter ( Python 2.7.5 ) and not use a venv.

When I try to install my packages, most work fine. Some throw a complaint similar to this...

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.

However, in those cases, --ignore-installed usually works fine.

For some reason though, when installing requests-2.22.0-py2.py3-none-any.whl it throws that error if I use --ignore-installed if I use --force-reinstall, if I try to uninstall. I cannot seem to figure out how to replace this one. The existing installation, if it matters, is requests 2.6.0

This is again an offline, airgapped machine using RHEL 7.

Jibril
  • 897
  • 2
  • 9
  • 23
  • Does this answer your question? [pip cannot uninstall : "It is a distutils installed project"](https://stackoverflow.com/questions/53807511/pip-cannot-uninstall-package-it-is-a-distutils-installed-project) – FlyingTeller Mar 21 '22 at 12:41

0 Answers0