I need to install virtualenv from an RPM.
I do this from the RPM's post-install script, with the following:
pip2 install pip --upgrade pip2 install virtualenv --upgrade
pip2 install pip now upgrades PIP to version 10, which throws the following error on the
pip2 install virtualenv command.
Cannot uninstall 'virtualenv'. 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.
A workaround I found is to do an
rpm -e python-virtualenv prior to executing the above.
rpm command cannot be executed from within a running
Any ideas how can I remove python-virtualenv using commands that are run from an RPM?