English 中文(简体)
当PyPi显示1.0.0版本时,为什么pip安装了配对版0.91.1?
原标题:Why does pip install matplotlib version 0.91.1 when PyPi shows version 1.0.0?

Update Oct 15, 2012

现在PyPi正在显示1.1.0的校正,以便解决这一问题。 通过:

<代码>pip 安装了matplotlib

Outdated Information Below

rel=“noreferer”>PyPi matplotlib 1.0.0。 然而,当我通过装入, 0.91.1版。

  • Why the difference in versions?
  • Is there a way to pip install matplotlib 1.0.0?

Research

看来,matplotlib s DOAP关于PyPi的记录指的是正确的版本。 The following is the DOAP document 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>

Configuration

  • OS: Mac OS X 10.6.6
  • Python 2.7
  • virtualenv 1.5.1
  • pip 0.8.1

Update 24-Aug-10 7:09 AM

PyPi镜片的安装也安装了0.91.1版本:

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

Update January 14, 2011 4:54 PM

尽管matplotlib 1.0.1/a>已被释放,但这一问题依然存在。

最佳回答

我曾经历过同样的问题。 我不知道为什么会发生这种情况,但我确实有定点;在开始时使用——f选项告诉它什么地方找到平衡来源。 (这也符合要求。)

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

我遵循了@oyvindio s和@elaichis的建议,但由于一些不明原因,我仍在读到0.91.1版本。 之后没有汇编(有以下错误:src/mplutils.cpp:17:错误:“vsprintf”没有在本范围上申报):

在我工作时,直接从食肉类中排入平衡:

pip install -e git+git@github.com:matplotlib/matplotlib.git#egg=matplotlib

Oyvindio的建议是巨大的,但首先,我必须安装一些头盔,用于源源杂异构体(否则就拒绝工作)。 在乌班图卢德,它喜欢:

$ sudo apt-get build-dep python-matplotlib

而到那时,才有可能安装垫子:

pip install -f  http://garr.dl.sourceforge.net/project/matplotlib/matplotlib/matplotlib-1.0.1/matplotlib-1.0.1.tar.gz  matplotlib




相关问题
Can Django models use MySQL functions?

Is there a way to force Django models to pass a field to a MySQL function every time the model data is read or loaded? To clarify what I mean in SQL, I want the Django model to produce something like ...

An enterprise scheduler for python (like quartz)

I am looking for an enterprise tasks scheduler for python, like quartz is for Java. Requirements: Persistent: if the process restarts or the machine restarts, then all the jobs must stay there and ...

How to remove unique, then duplicate dictionaries in a list?

Given the following list that contains some duplicate and some unique dictionaries, what is the best method to remove unique dictionaries first, then reduce the duplicate dictionaries to single ...

What is suggested seed value to use with random.seed()?

Simple enough question: I m using python random module to generate random integers. I want to know what is the suggested value to use with the random.seed() function? Currently I am letting this ...

How can I make the PyDev editor selectively ignore errors?

I m using PyDev under Eclipse to write some Jython code. I ve got numerous instances where I need to do something like this: import com.work.project.component.client.Interface.ISubInterface as ...

How do I profile `paster serve` s startup time?

Python s paster serve app.ini is taking longer than I would like to be ready for the first request. I know how to profile requests with middleware, but how do I profile the initialization time? I ...

Pragmatically adding give-aways/freebies to an online store

Our business currently has an online store and recently we ve been offering free specials to our customers. Right now, we simply display the special and give the buyer a notice stating we will add the ...

Converting Dictionary to List? [duplicate]

I m trying to convert a Python dictionary into a Python list, in order to perform some calculations. #My dictionary dict = {} dict[ Capital ]="London" dict[ Food ]="Fish&Chips" dict[ 2012 ]="...

热门标签