Find the highest Python version with installed virtualenvwrapper
Branch: frenzymadness/virtualenvwrapper:master
Branch: virtualenvwrapper/virtualenvwrapper:master
Merged
Merged pull request
Merged in master (pull request #73)
- 0956fc3
- Author: LumÃr Balhar
- Closed by: Jason Myers
- 2019-08-06
Description
As we discussed in this thread, it would be nice if the virtualenvwrapper would be ready for python-3-only environments.
Â
I prepared this patch for virtualenvwrapper.sh
which now tries to use python3
then python2
and pure python
just as a fallback. It also counts with situation when you have Python 3 installed but virtualenvwrapper
module is installed for Python 2. In that case, Python 2 is choosen as the main one.
Â
I did some testing on Fedora with both Pythons installed as well as on old Debian with just Python 2.
Â
What do you think about it?