matplotlib安装“is not a supported wheel"问题解决

来源:互联网 发布:怎么开淘宝充值店 编辑:程序博客网 时间:2024/05/19 02:30

问题:

环境:Python3.4,Win7

J:\tools>pip install matplotlib-2.0.2-cp34-cp34m-win_amd64.whl
matplotlib-2.0.2-cp34-cp34m-win_amd64.whl is not a supported wheel on this platform.


解决 :

1、Python命令行查看Python架构位数:

>>> import platform
>>> platform.architecture()

('32bit', 'WindowsPE')
>>>

2、改下32位的包

设置环境变量:set path=D:\Python34\Scripts;%path%;

J:\tools>pip install matplotlib-2.0.2-cp34-cp34m-win32.whl

如有问题,执行步骤3

3、升级pip

D:\Python34>python -m pip install --upgrade pip
Downloading/unpacking pip from https://pypi.python.org/packages/b6/ac/7015eb97dc
749283ffdec1c3a88ddb8ae03b8fad0f0e611408f196358da3/pip-9.0.1-py2.py3-none-any.wh
l#md5=297dbd16ef53bcef0447d245815f5144
Installing collected packages: pip
  Found existing installation: pip 1.5.6
    Uninstalling pip:
      Successfully uninstalled pip
Successfully installed pip
Cleaning up...

4、再次执行安装程序:

J:\tools>pip install matplotlib-2.0.2-cp34-cp34m-win32.whl

注意:安装时要联网,会下载所需的程序包。

安装命令:

J:\tools>pip install matplotlib-2.0.2-cp34-cp34m-win32.whl
Processing j:\tools\matplotlib-2.0.2-cp34-cp34m-win32.whl
Collecting pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=1.5.6 (from matplotlib==2.0.2)
  Using cached pyparsing-2.2.0-py2.py3-none-any.whl
Collecting python-dateutil (from matplotlib==2.0.2)
  Using cached python_dateutil-2.6.0-py2.py3-none-any.whl
Requirement already satisfied: numpy>=1.7.1 in d:\python34\lib\site-packages (fr
om matplotlib==2.0.2)
Collecting six>=1.10 (from matplotlib==2.0.2)
  Using cached six-1.10.0-py2.py3-none-any.whl
Collecting pytz (from matplotlib==2.0.2)
  Downloading pytz-2017.2-py2.py3-none-any.whl (484kB)
    35% |███████████▌                    | 174kB 176kB/s eta 0:00:02
    38% |████████████▏                   | 184kB 174kB/s eta 0:00:0
    40% |████████████▉                   | 194kB 174kB/s eta 0:00:0
    42% |█████████████▌                  | 204kB 192kB/s eta 0:00:
    44% |██████████████▏                 | 215kB 162kB/s eta 0:00
    46% |██████████████▉                 | 225kB 196kB/s eta 0:00
    48% |███████████████▌                | 235kB 200kB/s eta 0:0
    50% |████████████████▏               | 245kB 175kB/s eta 0:
    52% |█████████████████               | 256kB 201kB/s eta 0:
    54% |█████████████████▋              | 266kB 190kB/s eta 0
    57% |██████████████████▎             | 276kB 189kB/s eta
    59% |███████████████████             | 286kB 195kB/s eta
    61% |███████████████████▋            | 296kB 168kB/s eta
    63% |████████████████████▎           | 307kB 184kB/s et
    65% |█████████████████████           | 317kB 161kB/s et
    67% |█████████████████████▋          | 327kB 161kB/s e
    69% |██████████████████████▎         | 337kB 182kB/s
    71% |███████████████████████         | 348kB 184kB/s
    73% |███████████████████████▋        | 358kB 184kB/s
    76% |████████████████████████▎       | 368kB 189kB/
    78% |█████████████████████████       | 378kB 159kB/
    80% |█████████████████████████▊      | 389kB 182kB
    82% |██████████████████████████▍     | 399kB 179k
    84% |███████████████████████████     | 409kB 159k
    86% |███████████████████████████▊    | 419kB 220
    88% |████████████████████████████▍   | 430kB 18
    90% |█████████████████████████████   | 440kB 18
    92% |█████████████████████████████▊  | 450kB 1
    95% |██████████████████████████████▍ | 460kB
    97% |███████████████████████████████ | 471kB
    99% |███████████████████████████████▊| 481kB
    100% |████████████████████████████████| 491k
B 203kB/s
Collecting cycler>=0.10 (from matplotlib==2.0.2)
  Using cached cycler-0.10.0-py2.py3-none-any.whl
Installing collected packages: pyparsing, six, python-dateutil, pytz, cycler, ma
tplotlib
Successfully installed cycler-0.10.0 matplotlib-2.0.2 pyparsing-2.2.0 python-dat
eutil-2.6.0 pytz-2017.2 six-1.10.0

阅读全文
0 0
原创粉丝点击