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条)

报告相同问题?

悬赏问题

  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!