Windows10系统Python3.7环境安装Pandas失败求助
Hey there, let's break down why you're hitting that "No matching distribution found for Cython" error when trying to install pandas 0.22.0:
Root Cause
The pandas 0.22.0 version you're attempting to install doesn't support Python 3.7 — it was released before Python 3.7 launched, and its required dependency (Cython) has no builds compatible with Python 3.7. That's exactly why pip can't locate a matching Cython distribution.
Step-by-Step Solutions
1. Upgrade Pip First
Outdated pip versions often struggle to find compatible package builds. Let's make sure you're running the latest version:
python -m pip install --upgrade pip
2. Install a Pandas Version That Works With Python 3.7
Pandas added official Python 3.7 support starting with version 0.23.0. You have two solid options here:
- Install the latest stable compatible version (highly recommended):
pip3 install pandas>=0.23.0 - Install a specific compatible release (if your project needs a particular version):
pip3 install pandas==0.23.0
3. (Only if you must use pandas 0.22.0) Downgrade Python
If your project strictly requires pandas 0.22.0, you'll need to downgrade your Python installation to 3.6 or earlier — since pandas 0.22.0 only supports Python 2.7, 3.4, 3.5, and 3.6.
内容的提问来源于stack exchange,提问作者Patricio Rodriguez

