Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8381377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T16:41:06+00:00 2026-06-09T16:41:06+00:00

I have been running into this problem several times. Basically, at work we use

  • 0

I have been running into this problem several times. Basically, at work we use an old version of python (2.5) on windows, and often when I do for example pip install zope.interface pip always downloads the latest version of the package, regardless whether that package is supported on my version of python or not. So the example above would downloads 4.0.1 although that PKG-INFO does not list python 2.5 as a supported version and hence I get an installation error

  File "C:\Users\jamaam\build\zope.interface\setup.py", line 42
except DistutilsPlatformError as e:

I would like pip to be more intelligent and installs the highest version of the package that is supported by my python version (in this instance 3.8.0) with possibly warning that this package isn’t the latest, without me having to search the interweb to manually find the installable version on my environment.

Is there anyway to do so?

Here is some of the content of PKG-INFO which clearly does not list python 2.5

381 Classifier: Operating System :: OS Independent
382 Classifier: Programming Language :: Python :: 2.6
383 Classifier: Programming Language :: Python :: 2.7
384 Classifier: Programming Language :: Python :: 3
385 Classifier: Programming Language :: Python :: 3.2
386 Classifier: Topic :: Software Development :: Libraries :: Python Modules
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T16:41:07+00:00Added an answer on June 9, 2026 at 4:41 pm

    No; there is no metadata present to make such a call, so there is nothing pip (or any other tool) could use to determine what version of a package would work with your version of python.

    The only option you have is to use a version pin when installing:

    pip install -I zope.interface==3.8.0
    

    Note the -I switch there; since you already tried to install the latest version, you may need to ignore any installed version to force the downgrade.

    Note that the Trove python version classifiers (Classifier: Programming Language :: Python :: *) can not be relied upon for this task; they are set by the developer if they remember to do so, but cannot be updated later on to indicate compatibility with new python versions. They should be seen as a way to help refine searches on PyPI and other package indexes, not as metadata used by installers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been running into this problem a lot lately. I have an NSMutableArray called
I have been using this code, but have been running into some memory issues:
I'm exploring package building on Windows 7 but have been running into trouble after
I have been running into this error for the last 3 or 4 weeks
So I have been running into all kinds of interesting problems in VisualStudio 2008
I have been trying to learn Erlang and have been running into some problems
I have been attempting to learn Grails, however I am running into the following
This is a bit of a vague notion which I have been running over
I have been searching the internet for days trying to solve this problem. I
I've had an application that's been running great for several months. Thankfully I use

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.