当PyPi显示版本1.0.0时,为什么pip安装matplotlib版本0.91.1? [英] Why does pip install matplotlib version 0.91.1 when PyPi shows version 1.0.0?

查看:76
本文介绍了当PyPi显示版本1.0.0时,为什么pip安装matplotlib版本0.91.1?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

PyPi现在在1.1.0处显示matplotlib,因此此问题已解决.通过以下方式安装matplotlib:

PyPi is now showing matplotlib at 1.1.0 so this issue is resolved. Install matplotlib via:

pip install matplotlib

PyPi 显示 pip 将matplotlib安装到

PyPi shows matplotlib 1.0.0. However, when I install matplotlib via pip into a virtualenv, version 0.91.1 is installed.

  • 为什么版本不同?
  • 有没有办法pip安装matplotlib 1.0.0?

看来, matplotlib在PyPi上的DOAP记录指向正确的版本.以下是DOAP记录以供参考:

It appears that matplotlib's DOAP record on PyPi is pointing to the correct version. Below is the DOAP record for reference:

<?xml version="1.0" encoding="UTF-8" ?>
<rdf:RDF xmlns="http://usefulinc.com/ns/doap#" xmlns:foaf="http://xmlns.com/foaf/0.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><Project><name>matplotlib</name>
<shortdesc>Python plotting package</shortdesc>
<description>matplotlib strives to produce publication quality 2D graphics
      for interactive graphing, scientific publishing, user interface
      development and web application servers targeting multiple user
      interfaces and hardcopy output formats.  There is a 'pylab' mode
      which emulates matlab graphics</description>
<download-page>https://sourceforge.net/projects/matplotlib/files/matplotlib/matplotlib-1.0</download-page>
<homepage rdf:resource="http://matplotlib.sourceforge.net" />
<maintainer><foaf:Person><foaf:name>John D. Hunter</foaf:name>
<foaf:mbox_sha1sum>4b099b4a7f50a1f39642ce59c2053c00d4de6416</foaf:mbox_sha1sum></foaf:Person></maintainer>
<release><Version><revision>1.0.0</revision></Version></release>
</Project></rdf:RDF>

配置

  • 操作系统:Mac OS X 10.6.6
  • Python 2.7
  • virtualenv 1.5.1
  • 点0.8.1
  • Configuration

    • OS: Mac OS X 10.6.6
    • Python 2.7
    • virtualenv 1.5.1
    • pip 0.8.1
    • 从PyPi镜像安装还会安装0.91.1版:

      Installing from the PyPi mirror also installs version 0.91.1:

      $ pip install -i http://d.pypi.python.org/simple matplotlib
      

      更新2011年1月14日下午4:54

      即使 matplotlib 1.0.1 已发布,此问题仍然存在

      Update January 14, 2011 4:54 PM

      Even though matplotlib 1.0.1 has been release, this issue still persists.

      推荐答案

      我遇到了同样的问题.我不知道为什么会这样,但是我有解决方法.在pip中使用-f选项来告诉它在哪里可以找到matplotlib源. (这也适用于requirements.txt).

      I've experienced the same problem. I have no idea why it happens, but I do have a fix; use the -f option in pip to tell it where to find the matplotlib sources. (This works in requirements.txt as well).

      pip install -f http://downloads.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.0/matplotlib-1.0.0.tar.gz matplotlib
      

      这篇关于当PyPi显示版本1.0.0时,为什么pip安装matplotlib版本0.91.1?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆