5 ms·
It's for both libraries and different versions of Python. This is common and trivial. I install specific versions of Python using the Deadsnakes PPA since I can
by BuckRogers 11y ago
It's for both libraries and different versions of Python. This is common and trivial.
I install specific versions of Python using the Deadsnakes PPA since I can easily pull in any version going back to 2.3 if I need. Or you can compile and install from source.
Then create a folder for your project, 'virtualenv -p /usr/bin/python3.5 venv' to create the venv in that directory.
Activate/deactivate the environment as you wish when you want go between the system Python environment and the one in your folder.
- pyre 11y agoI replied to @mrits because @mrits was presenting virtualenv as replacement for using pyinstaller to manage the installation of non-OS-managed Python versions (which @cowsandmilk was talking about). I'm unsure how what I said: > If you want another Python, then you need to install it yourself (somehow) and then point virtualenv at it. Differs from what you are saying: > 'virtualenv -p /usr/bin/python3.5 venv'