douchen2011 2016-11-17 06:25
浏览 55
已采纳

无法使用Python 3.6.0 a4-amd64安装matplotlib

when downloading a pip using python 3.6, for example,

pip install matplotlib 

using admin cmd prompt.

It keeps giving me error

code 1 "python setup.py egg_info" failed in error 1.

I have installed setup tools and have my wheels up-to-date.

What am I doing wrong or what do I need to do to resolve this problem?

  • 写回答

2条回答 默认 最新

  • duanpiao6679 2016-12-27 17:03
    关注

    There is currently no stable (working) version of matplotlib out there for python 3.6. But there is a release candidat with version number: 2.0.0rc2. You are able to install this version without any problem. Just specify this version on install:

    pip install matplotlib==2.0.0rc2
    

    If you have installed any other Version or if you want to upgrade lateron use the -I switch of pip like:

    pip install -I matplotlib==2.0.0rc2
    

    ... to ignore the installed package and reinstall it instead.

    If you try this later, check the newest version and change it, to avoid an error.

    Later on, if matplotlib is stable, the error sould be gone. But for now, this is the only working solution. The Problem in this case is not matplotlib itself, it is caused by the packages "png" and "Freetype".

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 怎么改成循环输入删除(语言-c语言)
  • ¥15 安卓C读取/dev/fastpipe屏幕像素数据
  • ¥15 pyqt5tools安装失败
  • ¥15 mmdetection
  • ¥15 nginx代理报502的错误
  • ¥100 当AWR1843发送完设置的固定帧后,如何使其再发送第一次的帧
  • ¥15 图示五个参数的模型校正是用什么方法做出来的。如何建立其他模型
  • ¥100 描述一下元器件的基本功能,pcba板的基本原理
  • ¥15 STM32无法向设备写入固件
  • ¥15 使用ESP8266连接阿里云出现问题