Can someone explain the historical reasons for this problem even existing in the first place? (the problem that virtual env solves)
A non-magical introduction to pip and virtualenv for Python beginners
51–60 of 86 posts
Re: A non-magical introduction to pip and virtualenv for Python beginners
#52Man, global system-wide installations that require admin rights by default? That's certainly something! Quite the stark comparison to Node.js and npm, where everything is installed locally into the current directory (under node_modules) by default, and "global" installation is actually a per-user installation. Tricking pip with virtualenv seems to get you pretty close to what you get by default with npm, albeit still…
pip install --user XXX should get you what you want. Not default but not a huge burden either.
Re: A non-magical introduction to pip and virtualenv for Python beginners
#53Calling env/bin/python directly, as opposed to `source activate` is very handy for things like: * bash command line * cron * or daemon manager like supervisord
Re: A non-magical introduction to pip and virtualenv for Python beginners
#54Re: A non-magical introduction to pip and virtualenv for Python beginners
#55> Python actually has another, more primitive, package manager called easy_install, which is installed automatically when you install Python itself. It's actually not, it's part of setuptools/distribute, though some Python distributions (actually just brew that I know of) include distribute alongside Python. Also, while the quick skim of the rest of this looks mostly good, there's some unnecessary advice which compli…
How would you someone who has used pip with sudo undo the mess that has created in his computer? Uninstall everything and start over?
Re: A non-magical introduction to pip and virtualenv for Python beginners
#56> Python actually has another, more primitive, package manager called easy_install, which is installed automatically when you install Python itself. It's actually not, it's part of setuptools/distribute, though some Python distributions (actually just brew that I know of) include distribute alongside Python. Also, while the quick skim of the rest of this looks mostly good, there's some unnecessary advice which compli…
How would you someone who has used pip with sudo undo the mess that has created in his computer? Uninstall everything and start over?
Re: A non-magical introduction to pip and virtualenv for Python beginners
#57Python actually has another, more primitive, package manager called easy_install, which is installed automatically when you install Python itself. pip is vastly superior to easy_install for lots of reasons, and so should generally be used instead. You can use easy_install to install pip as follows: I found it quite ironic that the author says pip is "vastly superior" to easy_install and then proceeds to install pip u…
Re: A non-magical introduction to pip and virtualenv for Python beginners
#58http://docs.python-guide.org/en/latest/starting/install/osx/...
Re: A non-magical introduction to pip and virtualenv for Python beginners
#59> Python actually has another, more primitive, package manager called easy_install, which is installed automatically when you install Python itself. It's actually not, it's part of setuptools/distribute, though some Python distributions (actually just brew that I know of) include distribute alongside Python. Also, while the quick skim of the rest of this looks mostly good, there's some unnecessary advice which compli…
As I install/develop my python apps into VMs with a fixed python version, I rarely use virtualenv... don't see the need for the extra complexity. I've eagerly read pieces like this but haven't yet found out the reason this solution is problematic or that I'm doing it wrong. Just that no one else seems to be recommending it. Anyone have an idea? Btw, one of the best discussions of the various deployment options I've s…
Re: A non-magical introduction to pip and virtualenv for Python beginners
#60Man, global system-wide installations that require admin rights by default? That's certainly something! Quite the stark comparison to Node.js and npm, where everything is installed locally into the current directory (under node_modules) by default, and "global" installation is actually a per-user installation. Tricking pip with virtualenv seems to get you pretty close to what you get by default with npm, albeit still…
Edit: perhaps you changed your .npmrc or set the option via npm and forgot about it? I just checked on a fresh user, and 'npm install -g' definitely tries to install to /usr, just like pip.