You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

在PyCharm中安装pandas遇numpy==1.9.3版本匹配错误求助

Fixing "No matching distribution found for numpy==1.9.3" When Installing Pandas

Hey there, I’ve run into this exact headache before—let’s walk through how to fix it step by step:

Why this happens

The error pops up because the version of pandas you’re trying to install (likely an older release) has a hard dependency on numpy 1.9.3, but this specific numpy version is no longer hosted on PyPI. On top of that, outdated pip versions often struggle to automatically swap in compatible alternative dependencies, making the problem worse.

Solutions to try:

  1. Upgrade your pip first
    Outdated pip is a common culprit for wonky dependency resolution. Run this command to get the latest version:

    python -m pip install --upgrade pip
    
  2. Install the latest version of pandas
    Newer pandas releases use updated, still-available numpy versions. Installing the latest pandas will automatically pull in a compatible numpy version that’s hosted on PyPI:

    pip install pandas --upgrade
    

    If you’re using Python 3 specifically, swap python for python3 in the command.

  3. Install a specific pandas version that works with available numpy versions
    If you need an older pandas version for your project, pick one that doesn’t strictly require numpy 1.9.3. For example, pandas 0.20.3 works with numpy 1.9.2 or newer (which includes all the versions listed in your error message). Install it with:

    pip install pandas==0.20.3
    

    This lets pip grab a compatible numpy version from the available options you see.

  4. Manually install a compatible numpy version first
    If you want more control, install a numpy version that plays nice with your desired pandas release (like numpy 1.10.4, which is in your available list) before installing pandas:

    pip install numpy==1.10.4
    pip install pandas
    

Quick sanity check

Double-check that you’re working in the correct virtual environment (if you use one)—sometimes this error pops up because you’re installing packages in an environment you didn’t intend to.

内容的提问来源于stack exchange,提问作者ledia

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.26 10:46:54