Python installation and use of data analysis tools
A. Create a new Python environment -Anaconda
- 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:
# 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
after successfully opening #AnacondaNavigator home screen as shown in FIG.
# 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 #
# Use conda -h to view information supporting documents
# Use the list command to view information about the current environment package has been installed
# Find packages available for installation
II. Use Jupyter Notebook
# Open Anaconda3 directory in the "Start Menu", locate click "Jupyter Notebook" startup window will pop up, as shown:
# Start window
# Default browser will pop up the following interface
# In the top right of the main interface single "new" button to create the project directory AnacondaProjects not the first time [Open]
# 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
# Select "python3" create a Python-based notebook,
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)]
# Print cycle a new input sentence and execution unit Gerry, notebook editing interface is shown below:
# You can also modify the cells before, be re-run [two cells are modified]
# Select the top cell, click [Insert] -> [Insert Cell Above] to insert a new cell at the top of the cell
# 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,
# Pop-up window as follows
# [To begin setting up the title begins with a # word of the text is a title, begins with two words is the second title #]
The results shown in run #
# Export functions [Jupyter
Notebook there is another powerful feature is the export function, it can be exported to multiple formats notebook]
three. In Anaconda for jupyter install extensions
# Open the Start menu AnacondaPrompt
Run the following command to install #
#conda install -c conda-forge jupyter_contrib_nbextensions
#conda install -c conda-forge jupyter_nbextensions_configurator
# Execute the following command to start jupyter notebook:
#jupyter notebook
# Create a notebook, open the menu "Edit" -> "nbextensions config", extension of the configuration is shown as follows
Problems and summary:
Problem Anaconda a beginning of the installation, the error in the choice of installation path, as shown:
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: