Installare un modulo python

From RVM Wiki
Jump to navigation Jump to search

Per installare correttamente un modulo python:

sudo easy_install -ZU ModuleName

È importante usare -Z, altrimenti il modulo è installato come compresso, e ci possono essere problemi ad eseguirlo per un utente come nobody:

ExtractionError: Can’t extract file(s) to egg cache
The following error occurred while trying to extract file(s) to the Python egg
cache:
  [Errno 13] Permission denied: ‘/home/diesis/.egg-cache’
The Python egg cache directory is currently set to:
/home/diesis/.egg-cache
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 an accessible directory.

Riferimenti