Created
October 2, 2017 03:09
-
-
Save delfick/f1ad6872e2614189a7d98f2583ffc564 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(stephenmoore) ~ | |
14:05 ── virtualenv testvenv -p $(which python2.7) | |
Running virtualenv with interpreter /usr/bin/python2.7 | |
New python executable in /Users/stephenmoore/testvenv/bin/python | |
Installing setuptools, pip, wheel...done. | |
(stephenmoore) ~ | |
14:05 ── echo "import sys; print(sys.executable)" > testvenv.py | |
(stephenmoore) ~ | |
14:05 ── python | |
Python 2.7.10 (default, Jul 30 2016, 19:40:32) | |
[GCC 4.2.1 Compatible Apple LLVM 8.0.0 (clang-800.0.34)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import os | |
>>> os.execv("./testvenv/bin/python", ["./testvenv/bin/python", "./testvenv.py"]) | |
/Users/stephenmoore/testvenv/bin/python | |
(stephenmoore) ~ | |
14:05 ── python3.6 | |
Python 3.6.1 (v3.6.1:69c0db5050, Mar 21 2017, 01:21:04) | |
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin | |
Type "help", "copyright", "credits" or "license" for more information. | |
>>> import os | |
>>> os.execv("./testvenv/bin/python", ["./testvenv/bin/python", "./testvenv.py"]) | |
/Users/stephenmoore/testvenv/bin/python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment