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 6218955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:41:49+00:00 2026-05-24T07:41:49+00:00

I recently upgraded my Python 2.7.1 installation to 2.7.2 using the .msi installer and

  • 0

I recently upgraded my Python 2.7.1 installation to 2.7.2 using the .msi installer and the process seemed to go OK. However afterwards I happened to be looking at what the default values were for sys.path and noticed the entry for ‘C:\Windows\system32\python27.zip’. Wondering exactly what was in it, I decided to try opening it with a Zip utility to check out its contents — however I soon discovered that the file wasn’t there (although there is a python27.dll).

Anyhow I’m now wondering if something is wrong. Several existing Python programs I frequently use all seem to work without problems, so I’m not sure whether the installation is messed up or not (or how to fix it, if it is).

Update

I’m aware of and have read PEP273, so know about .zip file modules. That’s not what I’m asking about. What I want to know is the fact that there is no python27.zip installed on my system even though it’s referred to in my sys.path a problem? I’ve never encountered problems importing standard Python libraries, which is what I would expect not having one would affect.

  • 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-05-24T07:41:50+00:00Added an answer on May 24, 2026 at 7:41 am

    From PEP 273 — Import Modules from Zip Archives:

    Just as sys.path currently has default directory names, a default zip
    archive name is added too. Otherwise there is no way to import all
    Python library files from an archive.

    …

    The problem is what the name should be. The name should be linked
    with the Python version, so the Python executable can correctly find
    its corresponding libraries even when there are multiple Python
    versions on the same machine.

    We add one name to sys.path. On Unix, the directory is sys.prefix +
    “/lib”, and the file name is “python%s%s.zip” % (sys.version[0],
    sys.version[2]). So for Python 2.2 and prefix /usr/local, the path
    /usr/local/lib/python2.2/ is already on sys.path, and
    /usr/local/lib/python22.zip would be added. On Windows, the file is
    the full path to python22.dll, with “dll” replaced by “zip”. The zip
    archive name is always inserted as the second item in sys.path. The
    first is the directory of the main.py (thanks Tim).

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

Sidebar

Related Questions

I recently upgraded my GAE Python app to Python 2.7. Since then, I periodically
I have very recently been learning python. I have been using pyscripter as is
Recently upgraded the entire project to .NET 4.0 but when I debug javascript (using
Pair.net recently upgraded our PHP install and afterwards client started see HTML in email
Xcode 3 had templates for building Cocoa subclasses in Python. I've recently upgraded to
Recently upgraded to the awesome FireFox 4. However, I would like to disable the
I recently upgraded my computer from XP to Windows Seven. I was using IIS
I recently upgraded to Ubuntu 10.04 LTS and refreshed my Python environment. I installed
We recently upgraded our application to .Net 4.0. We were using MbUnit 2.x. With
I recently upgraded a VS2005 web deployment project to VS2008 - and now I

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.