Could not find a version that satisfies the requir

2019-05-04 06:35发布

问题:

Trying to install quandl and need pandas, so I try pip install pandas and get:

Could not find a version that satisfies the requirement numpy==1.9.3 (from versions: 1.10.4, 1.11.0, 1.11.1rc1, 1.11.1, 1.11.2rc1, 1.11.2, 1.11.3, 1.12.0b1, 1.12.0rc1, 1.12.0rc2, 1.12.0, 1.12.1rc1, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2) No matching distribution found for numpy==1.9.3.

I'm using python 3.4, win32

I am very new to this, thanks for helping

回答1:

Just use this command :

pip install pandas==0.19.0 .

An older version which will not cry with this error !!



回答2:

The current quandl is more generous in its requirements:

https://pypi.python.org/pypi/Quandl

Requires Distributions
pandas (>=0.14)
numpy (>=1.8)

It's github setup is the same: https://github.com/quandl/quandl-python/blob/master/setup.py



回答3:

Just Install Python 3.5 or higher.



回答4:

I changed the LASTEST VERSION into requirements.txt by pandas == 0.23.1 - at that time was the latest release of released - You can check in pandas



回答5:

I had a similar issue and was told that Pandas no longer supports Python 3.4 so you will need to install an older version of Pandas (and perhaps an older version of numpy) to work with Python 3.4.

Not terribly satisfying I know but there it is.



回答6:

I had the same issue installing pandas from source, branch 0.22.x. I followed these steps and obtained this error:

$ python -m pip install -e .
Obtaining file:///Users/mmorin/Software/pandas
  Could not find a version that satisfies the requirement numpy==1.9.3 (from versions: 1.11.3, 1.12.0rc2, 1.12.0, 1.12.1rc1, 1.12.1, 1.13.0rc1, 1.13.0rc2, 1.13.0, 1.13.1, 1.13.3, 1.14.0rc1, 1.14.0, 1.14.1, 1.14.2, 1.14.3)
No matching distribution found for numpy==1.9.3

I found this issue on GitHub where @djhoese suggested using version 9.0.3 of pip instead of version 10.0.1. I added this line in ci/environment-dev.yaml:

 - pip==9.0.3

I gave the environment a new name for clarity, so the whole file is:

name: pandas-dev-pip9
channels:
  - defaults
  - conda-forge
dependencies:
  - Cython
  - NumPy
  - moto
  - pytest
  - python-dateutil
  - python=3
  - pytz
  - setuptools
  - sphinx
  - pip==9.0.3


回答7:

Numpy is notoriously difficult to install as it contains dependencies (optional or selectable) on various non-Python packages. I would suggest to use a different environment manager such as Enthought or Anaconda (which I would recommend).

If you want to do a quick start, use the full-blown anaconda distribution. If you need more explicit control, use miniconda.

Once you have anaconda installed, all you need to do to create a new conda environment (similar to a virtual environment, but with non-python packages included in the environment itself) is

conda create -n my_shining_environment quandl

The above will include quandl (at the time of writing v3.3.0), numpy and all other dependencies for quandl.