Python installation and use of data analysis tools

Python installation and use of data analysis tools

A. Create a new Python environment -Anaconda

  1. Installation Anaconda3-5.3.1-x64 version or the official website [according to the teacher's installation package https://www.anaconda.com/download/] to download.

[# Default installation path, installation path specified After checking the bottom of the box], as shown in FIG installation interface:
Here Insert Picture Description
# installation is completed, the lower left corner of the system] [Start Menu Programs] [à Anaconda Found folder, comprising a plurality of components can be seen in this directory
Here Insert Picture Description
after successfully opening #AnacondaNavigator home screen as shown in FIG.

Here Insert Picture Description

# In AnacondaPrompt by and check if it is installed conda [conda Anaconda is the expansion pack to manage open source software package management system and environmental management system]

conda-version #
Here Insert Picture Description

# Use conda -h to view information supporting documents

Here Insert Picture Description

# Use the list command to view information about the current environment package has been installed

Here Insert Picture Description

# Find packages available for installation
Here Insert Picture Description

II. Use Jupyter Notebook

# Open Anaconda3 directory in the "Start Menu", locate click "Jupyter Notebook" startup window will pop up, as shown:
Here Insert Picture Description

# Start window

Here Insert Picture Description

# Default browser will pop up the following interface

Here Insert Picture Description

# In the top right of the main interface single "new" button to create the project directory AnacondaProjects not the first time [Open]
Here Insert Picture Description

# In the main interface stand-alone "AnacondaProjects" enter the directory, continue to click at the top right of the "new" button, open the drop-down list

Here Insert Picture Description

# Select "python3" create a Python-based notebook,

Here Insert Picture Description

Untitled # Click on the top of the theme, change the name to "The first python-based notebook"

# Gerry programming in the unit [a simple addition of false code (this time can enter any code and execution)]

Here Insert Picture Description

# Print cycle a new input sentence and execution unit Gerry, notebook editing interface is shown below:

Here Insert Picture Description
Here Insert Picture Description

# You can also modify the cells before, be re-run [two cells are modified]

Here Insert Picture Description

# Select the top cell, click [Insert] -> [Insert Cell Above] to insert a new cell at the top of the cell

Here Insert Picture Description
Here Insert Picture Description

# Find a drop-down box to set the cell type in the shortcut buttons area, click to open the drop-down list, select "Heading" will become the cell header cells,

Here Insert Picture Description

# Pop-up window as follows

Here Insert Picture Description

# [To begin setting up the title begins with a # word of the text is a title, begins with two words is the second title #]

Here Insert Picture Description

The results shown in run #

Here Insert Picture Description

# Export functions [Jupyter
Notebook there is another powerful feature is the export function, it can be exported to multiple formats notebook]

Here Insert Picture Description

three. In Anaconda for jupyter install extensions

# Open the Start menu AnacondaPrompt

Here Insert Picture Description

Run the following command to install #

#conda install -c conda-forge jupyter_contrib_nbextensions

#conda install -c conda-forge jupyter_nbextensions_configurator

Here Insert Picture Description
Here Insert Picture Description

# Execute the following command to start jupyter notebook:

#jupyter notebook

Here Insert Picture Description

# Create a notebook, open the menu "Edit" -> "nbextensions config", extension of the configuration is shown as follows

Here Insert Picture Description

Problems and summary:

Problem Anaconda a beginning of the installation, the error in the choice of installation path, as shown:

Here Insert Picture Description

Solution: The error message is displayed incumbent, an installation path, the successful implementation of the change, the installation was successful

// problems during installation (the default installation file path name in Chinese characters seems not redefine a full path name in English)

. Question two problems installing extensions in Anaconda for jupyter [create a new notebook, open the menu "Edit" -> "nbextensions
config", extended configuration interface plug-in does not appear]

Solution: Check network, campus network discovery speed a little slower, installed in a wireless network quarters, extension configuration interface as shown:

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_43306493/article/details/92760858