Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Atom, Anaconda & Co.
#3
Hi!

I assume you are working in windows, if you are using mac or a linux distribution the things are similar (and many times easier)

First I will start with the Atom part. Any python "program" is really just a text file and does not need to be compiled. Atom is just a fancy editor that integrate editing, debugging, project management and control version system in a single interface. But you can use notepad if you prefer. In my case when I am in windows and working with small things I use notepad++.

Second the chaos of anaconda/python. To interpret the text file you need an interpreter Rolleyes. This is the python3.6 program that you download from python.org. The problem is that it has only the standard library, that allows you to do a lot of things, but is limited. To expand the python power (for example, work with matrices) you need to install additional SW like numpy and others.
Install each piece of software and its dependencies one by one can be a nightmare in windows so there are distributions like Anaconda that bundle it for you in a single pack.
About the python 2.7, if you are starting to learn python, go directly with the 3.6. The old version is useful to maintain legacy code and understand old obscure examples but for a beginner is just noise.

About Git bash, is just a version control system (to track the changes in your files) but in windows comes with a nice feature, installs also a terminal emulator that uses bash... that is like the superpowered version of cmd.exe.

So what you need to start is:
- A python interpreter. This can be the python3.6 from python.org or the Anaconda (use the 3.x version)
- A plain text editor. You can use notepad, notepad++...
- A command line program to write "pyhton3.6 my_script.py". In windows you can use the good old cmd.exe, but Bash is nicer.

Notice that if you use an integrated environment (with python you have IDLE, with anaconda spyder, or you can go to pycharm, visual studio, atom...) they usually take care for you of the complete pack of writing+debugging+versioning+running.
Reply


Messages In This Thread
Atom, Anaconda & Co. - by Jack_Sparrow - Apr-29-2018, 06:44 PM
RE: Atom, Anaconda & Co. - by Larz60+ - Apr-29-2018, 07:11 PM
RE: Atom, Anaconda & Co. - by killerrex - Apr-29-2018, 07:23 PM
RE: Atom, Anaconda & Co. - by snippsat - Apr-29-2018, 08:17 PM
RE: Atom, Anaconda & Co. - by Jack_Sparrow - Apr-30-2018, 07:55 AM
RE: Atom, Anaconda & Co. - by Jack_Sparrow - May-26-2018, 01:46 PM
RE: Atom, Anaconda & Co. - by killerrex - May-26-2018, 04:08 PM

Forum Jump:

User Panel Messages

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