What is the Python egg cache (PYTHON_EGG_CACHE)? -


I have upgraded from Python 2.6.1 to 2.6.4 on my developer machine and presented on starting a dragon script The following was done with the following message:

Can not extract the file (files) in the egg cache

The following when trying to extract the file (files) in Python egg cache Error occurred:

[Errows 13] Permission denied: '/var/www/.python-eggs''

The python egg cache directory current Is defined in:

/var/www/.python-eggs

Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to a directory.

There is nothing in it, so I have a little bit of any harm-

Can anyone tell me what is the Python Undo Cache?

In addition, can you explain that this is / is different because the site-package directory uses the dragon to store the eggs (as I think Am I

From my investigation it has come to know that some eggs are packed as zip files, And they are saved in Python's site-package directory.

These zipped eggs need to be unzipped before they can be executed, so it is expanded in the PYTHON_EGG_CACHE directory by default that ~ / .python-eggs (located in the user's home directory). If it does not exist, then it can cause problems in trying to run applications.

There are several fixes:

  1. Create a insert the Python-Egg directory into the user's home directory and make it usable for the user. .
  2. Create a global directory for unzipping (e.g., / tmp / python-eggs ) and set the environment variable PYTHON_EGG_CACHE in this directory.
  3. When using the install, use the -Z switch while using easy_install to open the package.

Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -