The official home of the Python Programming Language. Python Releases for Mac OS X. Latest Python 3 Release - Python 3.9.0; Latest Python 2 Release - Python 2.7.18. Hey Carlos, I'm getting ready to jump back in to compiling Spyder for Python 3 on OS X. A couple things just to confirm: Since you've moved to github, is the following still relevant from bitbucket, or is there an updated file in the new repo.
Anaconda Individual Edition contains condaand Anaconda Navigator,as well as Python and hundreds of scientificpackages. When you installed Anaconda,you installed all these too.
Conda works on your command line interface such asAnaconda Prompt on Windows and terminal on macOS and Linux.
Navigator is a desktop graphical user interface thatallows you to launch applications and easily manageconda packages, environments, and channels withoutusing command-line commands.
You can try both conda and Navigatorto see which is right for you to manage your packages andenvironments. You can even switch between them, and the work youdo with one can be viewed in the other.
Try this simple programming exercise, with Navigator and thecommand line, to help you decide which approach is right for you.
When you’re done, see What’s next?.
Your first Python program: Hello, Anaconda!¶
Use Anaconda Navigator to launch an application. Then, create and runa simple Python program with Spyder and Jupyter Notebook.
Open Navigator¶
Choose the instructions for your operating system.
- Windows.
- macOS.
- Linux.
Windows
From the Start menu, click the Anaconda Navigator desktop app.
macOS
Open Launchpad, then click the Anaconda Navigator icon.
Linux
Open a terminal window and type
anaconda-navigator
.Run Python in Spyder IDE (integrated development environment)¶
Tip
Navigator’s Home screen displays several applications for you tochoose from. For more information, see links at the bottom of this page.
- On Navigator’s Home tab, in the Applications pane on the right, scrollto the Spyder tile and click the Install button to install Spyder.NoteIf you already have Spyder installed, you can jump right to theLaunch step.
- Launch Spyder by clicking Spyder’s Launch button.
- In the new file on the left, delete any placeholder text, then type orcopy/paste
print('HelloAnaconda')
. - In the top menu, click File - Save As and name your new program
hello.py
. - Run your new program by clicking the triangle Run button.
- You can see your program’s output in the bottom right Console pane.
Close Spyder¶
From Spyder’s top menu bar, select Spyder - Quit Spyder (In macOS,select Python - Quit Spyder).
Run Python in a Jupyter Notebook¶
- On Navigator’s Home tab, in the Applications pane on the right, scrollto the Jupyter Notebook tile and click the Install button to install JupyterNotebook.NoteIf you already have Jupyter Notebook installed, you can jump right tothe Launch step.
- Launch Jupyter Notebook by clicking Jupyter Notebook’s Launch button.This will launch a new browser window (or a new tab) showing theNotebook Dashboard.
- On the top of the right hand side, there is a dropdown menu labeled “New”.Create a new Notebook with the Python version you installed.
- Rename your Notebook. Either click on the current name and edit it orfind rename under File in the top menu bar.You can name it to whatever you’d like, but for this example we’ll useMyFirstAnacondaNotebook.
- In the first line of the Notebook, type or copy/paste
print('HelloAnaconda')
. - Save your Notebook by either clicking the save and checkpointicon or select File - Save and Checkpoint in the top menu.
- Run your new program by clicking the Run button or selectingCell - Run All from the top menu.
Close Jupyter Notebook¶
- From Jupyter Notebooks top menu bar, select File - Close and Halt.
- Click the Quit button at the upper right of the Notebook Dashboardand close the window or tab.
Close Navigator¶
From Navigator’s top menu bar, select Anaconda Navigator - QuitAnaconda-Navigator.
Write a Python program using Anaconda Prompt or terminal¶
Open Anaconda Prompt¶
Choose the instructions for your operating system.
- Windows.
- macOS.
- Linux.
Windows
From the Start menu, search for and open “Anaconda Prompt”:
macOS
Open Launchpad, then click the terminal icon.
Linux
Open a terminal window.
Start Python¶
At Anaconda Prompt (terminal on Linux or macOS), type
python
and press Enter.The
>>>
means you are in Python.Write a Python program¶
At the
>>>
, type print('HelloAnaconda!')
and press Enter.When you press enter, your program runs. The words “Hello Anaconda!” print tothe screen. You’re programming in Python!
Exit Python¶
On Windows, press CTRL-Z and press Enter. On macOS or Linux type
exit()
and press Enter.Optional: Launch Spyder or Jupyter Notebook from the command line¶
![Spyder For Mac Python Spyder For Mac Python](/uploads/1/3/3/8/133813371/820504647.png)
- At the Anaconda Prompt (terminal on Linux or macOS), type
spyder
and press Enter.Spyder should start up just like it did when you launched itfrom Anaconda Navigator. - Close Spyder the same way you did in the previous exercise.
- At the Anaconda Prompt (terminal on Linux or macOS), type
jupyter-notebook
and press Enter.
Jupyter Notebook should start up just like it did when you launchedit from Anaconda Navigator. Close it the same way you did in theprevious exercise.
What’s next?¶
Using Navigator¶
Using conda¶
Using Spyder¶
Using Jupyter Notebook¶
Links to IDE documentation¶
With over 20 million users worldwide, the open-source Individual Edition (Distribution) is the easiest way to perform Python/R data science and machine learning on a single machine. Developed for solo practitioners, it is the toolkit that equips you to work with thousands of open-source packages and libraries.
?Open SourceAnaconda Individual Edition is the world’s most popular Python distribution platform with over 20 million users worldwide. You can trust in our long-term commitment to supporting the Anaconda open-source ecosystem, the platform of choice for Python data science.
?Conda PackagesSearch our cloud-based repository to find and install over 7,500 data science and machine learning packages. With the conda-install command, you can start using thousands of open-source Conda, R, Python and many other packages.
?Manage EnvironmentsIndividual Edition is an open source, flexible solution that provides the utilities to build, distribute, install, update, and manage software in a cross-platform manner. Conda makes it easy to manage multiple data environments that can be maintained and run separately without interference from each other.
Build machine learning models
Build and train machine learning models using the best Python packages built by the open-source community, including scikit-learn, TensorFlow, and PyTorch.
Get Started
The open-source community at your fingertips
With Anaconda Individual Edition, the open-source world is your oyster. From robotics to data visualization, you can access the open-source software you need for projects in any field.
Open Source
User interface makes learning easier
Anaconda Navigator is a desktop GUI that comes with Anaconda Individual Edition. It makes it easy to launch applications and manage packages and environments without using command-line commands.
Expedite your data science journey with easy access to training materials, documentation, and community resources including Anaconda.org.
Install Anaconda
Anaconda for the enterprise
With Anaconda's Team and Enterprise Editions, our stack can handle the most advanced enterprise data science requirements.
See Products
What is Anaconda used for?
Anaconda MovementPyViz Data VisualizationScalable Machine LearningGetting started with Anaconda
Expedite your data science journey with easy access to training materials, documentation, and community resources including Anaconda Cloud.
Documentation
Review documentation for Anaconda Individual Edition.Starter Video
Watch a short video to get started using Individual Edition.Support
Have a question or need to submit a pull request? Visit our Github page.Anaconda Installers
Windows
Python 3.8
64-Bit Graphical Installer (466 MB)32-Bit Graphical Installer (397 MB)MacOS
Spyder For Mac
Python 3.8
64-Bit Graphical Installer (462 MB)64-Bit Command Line Installer (454 MB)Linux
Python 3.8
64-Bit (x86) Installer (550 MB)64-Bit (Power8 and Power9) Installer (290 MB)Spyder Python Mac Install
Additional Installers
The archive has older versions of Anaconda Individual Edition installers. The Miniconda installer homepage can be found here.