搜尋此網誌

[Python] 安裝Matplotlib

先安裝會用到的套件numpy再安裝matplotlib
C:\Users\MH>cd C:\Users\MH\AppData\Local\Programs\Python\Python311\Scripts
pip install numpy
pip install matplotlib

C:\Users\MH>cd C:\Users\minghang.du\AppData\Local\Programs\Python\Python311\Scripts

C:\Users\MH\AppData\Local\Programs\Python\Python311\Scripts>pip install numpy
Collecting numpy
Using cached numpy-1.25.1-cp311-cp311-win_amd64.whl (15.0 MB)
Installing collected packages: numpy
WARNING: The script f2py.exe is installed in 'C:\Users\MH\AppData\Local\Programs\Python\Python311\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed numpy-1.25.1

C:\Users\MH\AppData\Local\Programs\Python\Python311\Scripts>pip install matplotlib
Collecting matplotlib
Downloading matplotlib-3.7.2-cp311-cp311-win_amd64.whl (7.5 MB)
---------------------------------------- 7.5/7.5 MB 11.2 MB/s eta 0:00:00
Collecting contourpy>=1.0.1 (from matplotlib)
Downloading contourpy-1.1.0-cp311-cp311-win_amd64.whl (470 kB)
---------------------------------------- 470.9/470.9 kB ? eta 0:00:00
Collecting cycler>=0.10 (from matplotlib)
Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting fonttools>=4.22.0 (from matplotlib)
Downloading fonttools-4.41.0-cp311-cp311-win_amd64.whl (2.0 MB)
---------------------------------------- 2.0/2.0 MB 24.9 MB/s eta 0:00:00
Collecting kiwisolver>=1.0.1 (from matplotlib)
Downloading kiwisolver-1.4.4-cp311-cp311-win_amd64.whl (55 kB)
---------------------------------------- 55.4/55.4 kB 2.8 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.20 in c:\users\MH\appdata\local\programs\python\python311\lib\site-packages (from matplotlib) (1.25.1)
Collecting packaging>=20.0 (from matplotlib)
Downloading packaging-23.1-py3-none-any.whl (48 kB)
---------------------------------------- 48.9/48.9 kB 2.4 MB/s eta 0:00:00
Collecting pillow>=6.2.0 (from matplotlib)
Downloading Pillow-10.0.0-cp311-cp311-win_amd64.whl (2.5 MB)
---------------------------------------- 2.5/2.5 MB 26.6 MB/s eta 0:00:00
Collecting pyparsing<3 .1="">=2.3.1 (from matplotlib)
Downloading pyparsing-3.0.9-py3-none-any.whl (98 kB)
---------------------------------------- 98.3/98.3 kB ? eta 0:00:00
Collecting python-dateutil>=2.7 (from matplotlib)
Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
---------------------------------------- 247.7/247.7 kB 15.8 MB/s eta 0:00:00
Collecting six>=1.5 (from python-dateutil>=2.7->matplotlib)
Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, pyparsing, pillow, packaging, kiwisolver, fonttools, cycler, contourpy, python-dateutil, matplotlib
WARNING: The scripts fonttools.exe, pyftmerge.exe, pyftsubset.exe and ttx.exe are installed in 'C:\Users\MH\AppData\Local\Programs\Python\Python311\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed contourpy-1.1.0 cycler-0.11.0 fonttools-4.41.0 kiwisolver-1.4.4 matplotlib-3.7.2 packaging-23.1 pillow-10.0.0 pyparsing-3.0.9 python-dateutil-2.8.2 six-1.16.0

沒有留言:

張貼留言