| Name | emetib |
|---|---|
| Email Address | n/a |
| Posts | 2 |
-
- 2011-01-31 13:46:38
- ez_setup.py on centos 5 python2.7
- Board » Getting Started » Python Installation
-
I can't install ez_setup.py on centos 5
Here is what's happening
[root@sehaleys-mac bin]# python ez_setup.py
Downloading http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11-p
y2.7.egg
Traceback (most recent call last):
File "ez_setup.py", line 278, in <module>
main(sys.argv[1:])
File "ez_setup.py", line 212, in main
from setuptools.command.easy_install import main
zipimport.ZipImportError: can't decompress data; zlib not available
[root@sehaleys-mac ~]# sh setuptools-0.6c11-py2.7.egg
Traceback (most recent call last):
File "<string>", line 1, in <module>
zipimport.ZipImportError: can't decompress data; zlib not available
[root@sehaleys-mac ~]# yum install zlib
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: pubmirrors.reflected.net
* atomic: www5.atomicorp.com
* base: mirror.sanctuaryhost.com
* extras: mirror.sanctuaryhost.com
* updates: mirror.anl.gov
Setting up Install Process
Package zlib-1.2.3-3.i386 already installed and latest version
Nothing to do
IT appears zlib is in untared Python-2.7 file ...
yet did not install to python2.7
I was not able to configure it
./configure –with-zlib=/usr/include
[root@sehaleys-mac ~]# find $HOME -name '*zlib*'
/root/Python-2.7/Demo/zlib
/root/Python-2.7/Demo/zlib/zlibdemo.py
/root/Python-2.7/Modules/zlibmodule.c
/root/Python-2.7/Modules/zlib
/root/Python-2.7/Modules/zlib/zlib.h
/root/Python-2.7/Modules/zlib/zlib.3
/root/Python-2.7/Doc/library/zlib.rst
/root/Python-2.7/Lib/encodings/zlib_codec.py
/root/Python-2.7/Lib/test/test_zlib.py
Any suggestions?
Thanks
--- Last Edited by emetib at 2011-01-31 14:01:24 ---
-
- 2011-01-30 12:57:15
- Error: No module named staticfiles
- Board » Getting Started » Django Installation
-
Centos5 python2.7 Django-1.2.4
python
Python 2.7 (r27:82500, Jan 13 2011, 16:30:50)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
>>> import django
>>> django.__file__
'/opt/python2.7/lib/python2.7/site-packages/django/__init__.pyc'
INSTALLED_APPS = (
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'djclass',
absolute paths
/var/www/django-src/Django-1.2.4/start_project/class/djclass/templates
I am not able to runserver.
[root@sehaleys-mac class]# python manage.py runserver
Error: No module named staticfiles
I tried
pip install django-staticfiles
yet it installed ...
django-staticfiles in
/usr/lib/python2.4/site-packages
--- Last Edited by emetib at 2011-01-30 13:38:21 ---


