清华大学开源软件镜像站

https://mirrors.tuna.tsinghua.edu.cn/anaconda/archive/

https://anaconda.org/

http://docs.anaconda.com/anaconda/user-guide/getting-started/

Anaconda Distribution contains conda and Anaconda Navigator, as well as Python and hundreds of scientific packages. When you installed Anaconda, you installed all these too. You can try both conda and Navigator to see which is right for you to manage your packages and environments. You can even switch between them, and the work you do with one can be viewed in the other.

Run Python in Spyder IDE (integrated development environment)

TIP: Navigator’s Home screen displays several applications for you to choose from. For more information, see links at bottom of this page.

On Navigator’s Home tab, in the Applications pane on the right, scroll to the Spyder tile and click the Install button to install Spyder.

NOTE: If you already have Spyder installed, you can jump right to the Launch step.

Launch Spyder by clicking Spyder’s Launch button.

In the new file on the left, delete any placeholder text, then type or copy/paste print("Hello Anaconda").

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.

Run Python in a Jupyter Notebook

On Navigator’s Home tab, in the Applications pane on the right, scroll to the Jupyter Notebook tile and click the Install button to install Jupyter Notebook.

NOTE: If you already have Jupyter Notebook installed, you can jump right to the Launch step.

Launch Jupyter Notebook by clicking Jupyter Notebook’s Launch button.

This will launch a new browser window (or a new tab) showing the Notebook Dashboard. On the top of the right hand side, there is a drop down labeled “New”. Create a new Notebook with the Python version you installed.

First, you’ll want to rename your Notebook. Either click on the current name and edit it - or find rename under File in the top menu bar. You can name it to whatever you’d like, but for this example we’ll use MyFirstAnacondaNotebook.

In the first line of the Notebook, type or copy/paste print("Hello Anaconda").

Save your Notebook by either clicking the save and checkpoint icon or select File - Save and Checkpoint in the top menu.

Run your new program by clicking the Run button or selecting Cell - Run All from the top menu.

猜你喜欢

转载自www.cnblogs.com/2008nmj/p/10331706.html