virtual-node icon indicating copy to clipboard operation
virtual-node copied to clipboard

Uninstalling through PIP

Open lechup opened this issue 12 years ago • 1 comments

When I try to uninstall virtual-node:

pip uninstall virtual-node

I still got node installed in my virtualenv.

lechup avatar Jan 24 '14 11:01 lechup

Unfortunately, the short answer is that it isn't possible to uninstall virtual-node using pip. The reason for that is that virtual-node is basically a python script in setup.py that downloads nodejs and compiles it using shell commands. As such setuptools and pip don't know anything about installed files and can't remove them. I am not quite sure if there is a way to work around this using yet another hack in setup.py.

For the time being you'll have to manually remove the files installed into your virtualenv which should usually by these two directories:

  • <envdir>/lib/node
  • <envdir>/lib/node_modules

as well as the executables of node packages you've installed that are in <envdir>/bin which will be at least node and npm.

I hope that helps and if you have any suggestions or ideas how to make uninstalls work as well, I'm happy to hear about them.

roadsideseb avatar Jan 26 '14 02:01 roadsideseb