You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,21 +29,21 @@ This can be achieved by setting multiple versions of Python, for example with
29
29
asdf global python 3.6.2 2.7.13
30
30
```
31
31
32
-
This feature is experimental but should be working well enough for most use cases. Incidentally, the first python version you install will claim `python`. With the above example:
32
+
Executables in the first version will take priority over the executables in the next one. Note that you can use an arbitrary number over versions, if needed.
33
+
With the above example, `python` will therefore use the `python` executable found in version 3.6.2.
34
+
However, as the `python2` does not exist in Python 3.6.2, `python2` will use the `python2` executable found in version 2.7.13.
33
35
34
36
```
35
37
python -V
36
-
Python 3.6.3
38
+
Python 3.6.2
37
39
38
40
python3 -V
39
-
Python 3.6.3
41
+
Python 3.6.2
40
42
41
43
python2 -V
42
44
Python 2.7.13
43
45
```
44
46
45
-
In some cases, you might want python2 and python3 to co-exist, but python needs to point at a specific python version. The order of python versions is what controls this.
46
-
47
47
## Pip installed modules and binaries
48
48
49
49
If you use pip to install a module like ipython that has a binaries. You will need to run `asdf reshim python` for the binary to be in your path.
0 commit comments