Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Herein lies my problem. If I want to start a Node project I run `npm init` and then `npm install --save` to my heart's content. If I somehow manage to mess it up I just delete node_modules/ and install again.

If I want to start a Python project I have to set up venv and remember to put relative paths in front of every command or else it'll run the system version. Sounds simple, but it's still something to always remember.



Just source the activate script and it'll prepend the correct path so that you don't need to do anything else.


You have to use something like anaconda. It's basically the same as npm_modules (sorta).


Use virtualenvwrapper.

$ mkproject foobar

$ workon foobar

You're set




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: