Troubling installing Python 3 on my iMac

17 views
Skip to first unread message

James

unread,
Apr 30, 2019, 8:40:42 AM4/30/19
to Django users
I downloaded the file from the python website and went through the entire installation process... accepting all of the default values.  However, when I went to my Terminal window and typed python, it still shows the older version:

Python 2.7.10 (default, Feb 22 2019, 21:17:52) 

[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] on darwin


What did I do wrong?  I need to get this all setup before I can start the Django tutorial.

Thank you!

Aditya Singh

unread,
Apr 30, 2019, 8:42:13 AM4/30/19
to django...@googlegroups.com
Kindly type python3 in the terminal and let me know the output :)

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/d4a9335d-5067-4620-882e-e10a6d04dbcd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Suresh Kannan

unread,
Apr 30, 2019, 9:36:30 AM4/30/19
to django...@googlegroups.com

James

unread,
Apr 30, 2019, 3:02:01 PM4/30/19
to Django users
Thanks Suresh!  This did the trick.


On Tuesday, April 30, 2019 at 7:36:30 AM UTC-6, Suresh Kannan wrote:
On Tue, Apr 30, 2019 at 8:39 AM James <truthse...@gmail.com> wrote:
I downloaded the file from the python website and went through the entire installation process... accepting all of the default values.  However, when I went to my Terminal window and typed python, it still shows the older version:

Python 2.7.10 (default, Feb 22 2019, 21:17:52) 

[GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)] on darwin


What did I do wrong?  I need to get this all setup before I can start the Django tutorial.

Thank you!

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django...@googlegroups.com.

RLM

unread,
Apr 30, 2019, 7:20:03 PM4/30/19
to django...@googlegroups.com
I guess you installed Python3.7.2 or similar

If so you can call it in a terminal with python3 not just python. Open a terminal and type python3 it should start
python 7.n is the operating system version.
It is important to use pip3 and  use virtualenv to create the python 3 environment.

use pip3 to install django in your environment.
When you look at tutorials in google or other specify python3 and >2018 so you don't get out of date tutorials of which there are hundreds.

Cheers
Roger

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.

Alfredo Sumague

unread,
Apr 30, 2019, 8:27:54 PM4/30/19
to django...@googlegroups.com
the safest way to use the latest python version (python 3.7.3 is the latest) is to create a virtual environment for python3, from there you install the latest python version, or you can use brew command  to install python3. You can also install anaconda on your mac.

Good luck.  

Reply all
Reply to author
Forward
0 new messages