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

ArcGIS自带Python 2.7安装pip失败求助:执行get-pip.py遇版本匹配错误

Fixing "No Matching Distribution Found" When Installing Pip for ArcGIS Python 2.7

Hey there, I’ve run into this exact issue before with ArcGIS’s bundled Python 2.7—let’s break down why it’s happening and how to fix it.

Why You’re Seeing This Error

Python 2.7 reached its end-of-life back in 2020, and modern versions of pip no longer support it. The standard get-pip.py you downloaded tries to install the latest pip release, which isn’t compatible with Python 2.7. That’s exactly why you’re getting that frustrating "no matching distribution found" message.

Step-by-Step Solution

Here’s how to install the last version of pip that works with Python 2.7 (version 20.3.4):

  1. Open Command Prompt as Administrator

    • Right-click the Command Prompt shortcut in Start > Accessories, then select "Run as administrator." This avoids permission errors that can pop up during installation.
  2. Navigate to ArcGIS’s Python Directory
    Run this command to switch to your ArcGIS Python folder:

    cd C:\Python27\ArcGIS10.2
    
  3. Get the Compatible Bootstrap Script
    You’ll need a version of get-pip.py that’s designed specifically for Python 2.7 (the generic one you downloaded won’t work). Search for "pip 2.7 legacy bootstrap script" to find the correct official file, then save it directly into your C:\Python27\ArcGIS10.2\ directory.

  4. Run the Installation
    Execute this command to install the compatible pip version:

    python get-pip.py
    

    This script will automatically install pip 20.3.4, which plays nicely with ArcGIS’s Python 2.7.

  5. Verify the Installation
    To make sure everything worked, run:

    pip --version
    

    You should see output like pip 20.3.4 from C:\Python27\ArcGIS10.2\Lib\site-packages\pip (python 2.7).

Troubleshooting Tips

  • If you run into network issues (like slow downloads or blocked access), try using a domestic PyPI mirror by adding this flag to the installation command:
    python get-pip.py -i https://pypi.tuna.tsinghua.edu.cn/simple
    
  • Double-check that you’re using the right Python executable—if you have multiple Python versions installed, running python --version should confirm it’s Python 2.7.x (matching ArcGIS 10.2’s version).

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

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.05.26 08:30:27