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 a VS2005 web deployment project to VS2008 - and now I
I recently upgraded to Subversion 1.5, and now I cannot commit my code to
I recently upgraded my oracle client to 10g (10.2.0.1.0). Now when I try to
I recently upgraded a c# windows service to run as a 64 bit .net
I recently upgraded from Delphi 4 to Delphi 2009. With Delphi 4 I had
I recently upgraded to Eclipse Ganymede from Europa and now I'm finding that when
I recently upgraded VS 2005 to VS 2008. Unfortunately I have a very basic
I recently upgraded a Web Application Project (as well as some dependent projects) from
I recently upgraded a 1.1 web project to a 2.0 web application. After going
I recently upgraded one of my applications to Rails 2.2.2. Having done that, I've

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.