loading...

re: Where does Python Shine Over Node? VIEW POST

TOP OF THREAD FULL DISCUSSION
re: I have experience in both. It usually comes down to the dependencies required, and what's already on the target environment. You might use IronPyth...

This is all really interesting stuff about target environments. I also was under the impression that, once you installed Python or enjoyed having it by default on your Mac or Linux machine, that it just simply ran in and of itself.

What are the implications on target environment when you setup a virtual environment (venv)? I wonder if this is using CPython behind the scenes.

Virtualenv supports multiple implementations, and is what you use when you want to isolate your Python environment.

Think of it like this: by default, pip install packagename is similar to npm install --global packagename. When you use virtualenv to create a new directory (called "env" for example), and then execute ./env/bin/pip install packagename, the packages are installed within that directory only (similar to how npm by default installs to ./node_modules when not using global mode).

Code of Conduct Report abuse