forked from MorvanZhou/tutorials
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplt2_install.py
43 lines (32 loc) · 1.23 KB
/
plt2_install.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# View more python tutorials on my Youtube and Youku channel!!!
# Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXTTpcg
# Youku video tutorial: http://i.youku.com/pythontutorial
# 2 - install
"""
Make sure you have installed numpy.
------------------------------
INSTALL on Linux:
If you have python3, in terminal you will type:
$ sudo apt-get install python3-matplotlib
Otherwise, if python2, type:
$ sudo apt-get install python-matplotlib
-------------------------------
INSTALL on MacOS
For python3:
$ pip3 install matplotlib
For python2:
$ pip install matplotlib
--------------------------------
INSTALL on Windows:
1. make sure you install Visual Studio;
2. go to: https://pypi.python.org/pypi/matplotlib/
3. find the wheel file (a file ending in .whl) matches your python version and system
(e.g. cp35 for python3.5, win32 for 32-bit system, win_amd64 for 64-bit system);
4. Copy the .whl file to your project folder, open a command window,
and navigate to the project folder. Then use pip to install matplotlib:
e.g.
> cd python_work
python_work> python -m pip3 install matplotlib-1.4.3-cp35-none-win32.whl
If not success. Try the alternative way: using "Anaconda" to install.
Please search this by yourself.
"""