Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstalling through PIP #8

Open
lechup opened this issue Jan 24, 2014 · 1 comment
Open

Uninstalling through PIP #8

lechup opened this issue Jan 24, 2014 · 1 comment

Comments

@lechup
Copy link

lechup commented Jan 24, 2014

When I try to uninstall virtual-node:

pip uninstall virtual-node

I still got node installed in my virtualenv.

@roadsideseb
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants