Python and Django: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 15: | Line 15: | ||
* /usr/local/bin/python3.6 | * /usr/local/bin/python3.6 | ||
== Python 2 installation == | |||
The symbolic links in the Application MAMP bin directory (/Applications/MAMP/Library/bin): | |||
<syntaxhighlight lang="bash" line start="1"> | |||
$ la python* | |||
lrwxr-xr-x 1 frielink1 admin 7B Dec 23 20:01 python -> python2 | |||
lrwxr-xr-x 1 frielink1 admin 14B Mar 8 2016 python-config -> python2-config | |||
lrwxr-xr-x 1 frielink1 admin 9B Mar 8 2016 python2 -> python2.7 | |||
lrwxr-xr-x 1 frielink1 admin 16B Mar 8 2016 python2-config -> python2.7-config | |||
-rwxrwxr-x 1 frielink1 admin 2.0M Jul 6 2015 python2.7 | |||
-rwxrwxr-x 1 frielink1 admin 1.7K Jul 6 2015 python2.7-config | |||
</syntaxhighlight> | |||
* The '''1st'' and '''3rd''' symbolic link make the {{FormFCTW|8|blue|bold|python}} command point to {{FormFCTW|8|blue|bold|python2.7}} on the '''5th''' line. | |||
* The '''2nd''' and '''4th''' symbolic link make the {{FormFCTW|8|blue|bold|python-config}} command point to the {{FormFCTW|8|blue|bold|python2.7-config}} on the '''6th''' line. | |||
== See also == | == See also == |
Revision as of 11:20, 24 December 2017
Introduction
Mac OSX
Standard Python version 2.7.10 is installed on Mac OSX High Sierra and under MAMP. This version is located in:
- /Application/MAMP/Library/bin/python
- /usr/bin/python
Official this version is deprecated and is out-of-service from 2020. A good reason to upgrade [1]. The installer will create a directory:
- /Library/Frameworks/Python.framework/Versions/3.6/bin/python3.6
- /usr/local/bin/python3.6
Python 2 installation
The symbolic links in the Application MAMP bin directory (/Applications/MAMP/Library/bin): <syntaxhighlight lang="bash" line start="1"> $ la python* lrwxr-xr-x 1 frielink1 admin 7B Dec 23 20:01 python -> python2 lrwxr-xr-x 1 frielink1 admin 14B Mar 8 2016 python-config -> python2-config lrwxr-xr-x 1 frielink1 admin 9B Mar 8 2016 python2 -> python2.7 lrwxr-xr-x 1 frielink1 admin 16B Mar 8 2016 python2-config -> python2.7-config -rwxrwxr-x 1 frielink1 admin 2.0M Jul 6 2015 python2.7 -rwxrwxr-x 1 frielink1 admin 1.7K Jul 6 2015 python2.7-config </syntaxhighlight>
- The 1st and 3rd' symbolic link make the python command point to python2.7 on the 5th line.
- The 2nd and 4th symbolic link make the python-config command point to the python2.7-config on the 6th line.
See also
Reference
- ↑ Upgrade Python on Mac to version3., Download page for the installer of Python 3.6 on Apple Mac OSX.