Python Forum
Starting to learn python on a Mac
Thread Rating:
  • 2 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Starting to learn python on a Mac
#1

I am starting to learn Python on my macbook. I have installed python version 2.7.13 and have text wrangler as a code editing app.

I am thinking of getting the book "Programming Python /Mark Lutz"

Any suggestions would be highly appreciated.

Thank you very much.
Reply
#2
As a new Python programmer, you should be using the latest Python version (currently 3.6.3), the 2.x.x versions are maintenance release only and will no longer be supported in 2020.  Mark Lutz is a good author, and hopefully the book you are getting is the 5th edition or greater.  Be sure and check out our List of Free Resources.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
Reply
#3
Learning Python
is actually hte first book. Programming Python is the second. I would do them in order. Learning python goes into python and general coding fundamentals while programming python goes into tkinter GUI and networking...it already assumes you have read the first book.

Learning Python by mark lutz is actually the book i used to learn python. I still have the 4th edition sitting here getting dusty now. It made a good reference book for many years. The programming python i read also, but i didnt like it as much. Once you read it, you dont really need it anymore like the first. You can acquire a lot of what is in programming python by blogs and tutorials online and get the same effect. Whereas in learning python, he goes quite deep into everything where blogs and tutorial do not go that far.

Also regardless of what he says, python2.x is going to be dead. Im sure the 6th edition wont even show py2 on it. Also the 5th edition is only up to python3.3. There are some cool features that python3.6 added that everyone should be aware of. But once you read learning python, you can just read the updates to python3.6 to get updated.
Recommended Tutorials:
Reply
#4
(Nov-17-2017, 01:39 AM)sparkz_alot Wrote: As a new Python programmer, you should be using the latest Python version (currently 3.6.3), the 2.x.x versions are maintenance release only and will no longer be supported in 2020.  Mark Lutz is a good author, and hopefully the book you are getting is the 5th edition or greater.  Be sure and check out our List of Free Resources.

Thank you very much for your kind reply.

I am probably going to ask a ton of stupid questions till I am actually set up to learn and follow the instructions from the book on my machine. Till then, sorry all :(
Reply
#5
If you are learning python on mac osx, I strongly suggest that you just bite the bullet and use Anaconda, you can get either python 2.7 or python 3, but I would strongly suggest python 3.

The main reason I recommend anaconda, is that is bypasses all the admin stuff of getting it to work properly on that mac. Mac OSX comes with python 2.7 as native, as it is used by the operating system, trying to install python 3 as a newby is very very frustrating, unless you are familiar with PATH and other bash syntax. However, learning python, you will end up learning these in the process.

Anaconda is self installing, and actually ends up being self contained within a folder in your Library and can just be deleted if you don't like it. But for learning with, it just saves a lot of heatache you will end up with most of the libraries you are likely to want to use.

https://www.anaconda.com/download/#linux

All you will have to remember is that you are using anaconda as opposed to python, so you will be using "conda install" as opposed to "pip install". The other beauty of Anaconda, is that is sorts out the PATH for you, so once installed, you simply go into a terminal window, type "python" and it will automatically go into the python3 prompt without messing with the python that interacts with your OS.

Enjoy, python is a fun language.
Reply
#6
You can do the same with a python environment. Install to python but not your OS. No permissions as well.

more info here, scroll down to virtual environment

PS the only reason i know how to manually change a PATH variable in winblows is because i had to tweak it before python started doing it automatically. Sometimes its good to just dive in.
Recommended Tutorials:
Reply
#7
The Hitchhiker’s Guide advice for Python 3 on Mac OS X.
pyenv is great,make it easy to install and switch between version like eg Python 3.6 and Anaconda 3.6.
pyenv and Anaconda tutorial.
Reply
#8
Thank you very much everyone for the kind suggestions. I already installed the latest version of python my mac and already started reading/learning from the book mentioned above here.

I love the simplicity of python.
Reply
#9
You can also take MIT's Intro to Comp Sci Using Python 100% free at https://courses.edx.org/courses/course-v..._2/course/.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Starting over with Python Mark17 1 469 Sep-29-2023, 07:16 PM
Last Post: Larz60+
Big Grin New to python, starting from scratch Pythnoobvent1971 1 1,967 Apr-16-2021, 01:33 PM
Last Post: Yoriz
  I really need help, I am new to python, I am using a book that helps me to learn JaprO 5 2,904 Nov-28-2020, 02:30 PM
Last Post: JaprO
  starting python from windows command prompt MaartenRo 4 2,747 Sep-04-2020, 12:25 PM
Last Post: MaartenRo
  Want to learn Python compilation and virtual machine IJB 3 2,569 Feb-14-2020, 02:59 PM
Last Post: IJB
  What is the bestway to learn Python? PythonRIMD 2 2,348 Jan-11-2020, 04:12 PM
Last Post: joe_momma
  Beginner want to learn python Keenygp 5 3,225 Apr-10-2019, 09:36 AM
Last Post: KevinBrown
  Issue starting Python on VSC (Nooby) Buggy 1 2,020 Mar-14-2019, 09:44 PM
Last Post: snippsat
  python 'SMTP debugging server' not starting local error pcsailor 1 3,407 Nov-26-2018, 10:13 PM
Last Post: micseydel
  [Python] Learn words' sentiment based on labels Artificious 1 3,005 Jul-05-2018, 10:44 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020