First, Python3.6 installation method
1. Access to the official website download python3.6:
https://www.python.org/downloads/
Select version 3.6, download.
2. Click the Python-3.6.0.exe file to install to the computer.
3. Configure system Environment variables: Computer-> Properties-> advanced system settings-> environment variable-> system variable->path, add path:;D: \myprogram\python3.6-setup (This is my installation path, preceded by a semicolon ";" Be sure to. )
4. So the Python3.6 is installed.
You can enter the command line window at the beginning-> search->cmd. Enter Python and you can enter the Python command line. You can also see the Python version number. Exit Python's command line, enter: Ctrl+z, and enter return.
second, the installation of NumPy library
1. Access to the official website: https://pypi.python.org/pypi/numpy
Because the above describes the installation of Python3.6, so here to choose:
NUMPY-1.12.1RC1-CP36-NONE-WIN32.WHL (MD5,PGP), download
"Do not choose NUMPY-1.12.1RC1-CP36-NONE-WIN_AMD64.WHL (MD5,PGP), I have tried, failed." Although my computer is 64-bit "
2. Download the file: NUMPY-1.12.1RC1-CP36-NONE-WIN32.WHL to the path: D:\my program\python3.6-setup\scripts.
3. Configure system Environment variables: Computer-> Properties-> advanced system settings-> environment variable-> system variable->path, add path:;D: \myprogram\python3.6-setup\scripts
4. Enter in the Command line window: Pip3.6install D:\my PROGRAM\PYTHON3.6-SETUP\SCRIPTS\NUMPY-1.12.1RC1-CP36-NONE-WIN32.WHL, waiting for a while will say successful.
5. Enter Python in the command line, enter the Python environment, and then enter import NumPy, no error indicates that the installation NumPy succeeded.
third, the installation of Matplotlib
Refer to the official Website installation method:
Http://matplotlib.org/2.0.0/users/installing.html
1. Enter the command line, enter: (need to download resources online)
python-m pip install-u pip Setuptools
And then
python-m pip Install Matplotlib
OK, installation is complete
2. Input, python into the Python environment, input: Importmatplotlib
My out: Backendtkagg is interactive backend. Turning interactive mode on.
(Google translation: Back end Tkagg is interactive backend.) Open Interactive mode. Don't panic, no mistakes.
Again, help (matplotlib) can be popped out of his library introduction.
Finally, show today's results with a large program:
Import NumPy as NP
import Matplotlib.pyplot as plt
x = np.linspace (0, 1000)
y = np.sin (x)
z = Np.cos (x **2)
plt.figure (figsize= (8, 4))
Plt.plot (x, y, label= ' $sin (x) $ ', color= ' red ', linewidth=3)
plt.plot (x, Z , ' g--', label= ' $cos (x^2) $ ', lw=3) Plt.xlabel (' Time
(s) ') Plt.ylabel (
' volt ')
plt.title (' the ' Firgure ')
Plt.ylim ( -1.2, 1.2)
Plt.legend ()
Run Result:
reference materials:
http://blog.csdn.net/zhangyuehuan/article/details/39134747
Http://jingyan.baidu.com/article/03b2f78c0473e55ea237aeca.html
http://blog.csdn.net/imudges_zy/article/details/50877065
Install scipy Reference website:
http://blog.csdn.net/dillon2015/article/details/54834741
Download the appropriate installation files to http://www.lfd.uci.edu/~gohlke/pythonlibs/, a variety of Python third-party libraries.