WebFaction
Community site: login faq

I have django app that need pytz. How to install it with pip ? Here are the errors that I have.

[??????@?????? ~]$ pip2.7 freeze
MySQL-python==1.2.3
PIL==1.1.7
docutils==0.7
egenix-mx-base==3.1.3
numpy==1.5.0
psycopg2==2.3.2
pycrypto==2.3
reportlab==2.4
wsgiref==0.1.2

[??????@?????? ~]$ pip2.7 install pytz
Wheel installs require setuptools >= 0.8 for dist-info support.
pip's wheel support requires setuptools >= 0.8 for dist-info support.
Storing debug log for failure in /home/??????/.pip/pip.log

[??????@?????? ~]$ pip2.7 install wheel
Wheel installs require setuptools >= 0.8 for dist-info support.
pip's wheel support requires setuptools >= 0.8 for dist-info support.
Storing debug log for failure in /home/buklijas/.pip/pip.log

[??????@?????? ~]$ pip2.7 install setuptool
Wheel installs require setuptools >= 0.8 for dist-info support.
pip's wheel support requires setuptools >= 0.8 for dist-info support.
Storing debug log for failure in /home/??????/.pip/pip.log

This question is marked "community wiki".

asked 08 Jan '14, 05:44

WebOrCode
5127
accept rate: 0%

edited 08 Jan '14, 05:45


The new version of pip (1.5) uses wheel archives which requires setup tools version > 0.8. Our system is currently running setuptools==0.6c11 and this is causing the error. You can avoid this by using --no-use-wheel until setuptools is upgraded, for example:

pip2.7 install pytz --no-use-wheel

Alternatively you can install setuptools and pip into your account:

mkdir -p $HOME/src $HOME/lib/python2.7/site-packages
cd $HOME/src
wget --no-check-certificate https://pypi.python.org/packages/source/s/setuptools/setuptools-0.8.tar.gz
tar -xzf setuptools-0.8.tar.gz
cd setuptools-0.8
PYTHONUSERBASE=$HOME PYTHONPATH=$HOME/lib/python2.7/site-packages python2.7 setup.py install

cd $HOME/src
wget --no-check-certificate https://pypi.python.org/packages/source/p/pip/pip-1.5.tar.gz
tar -xzf pip-1.5.tar.gz
cd pip-1.5
PYTHONPATH=$HOME/lib/python2.7/site-packages python2.7 setup.py install --prefix=$HOME

When installing python packages, install them with:

PYTHONUSERBASE=$HOME pip2.7 install --user django

Alternatively, you can set PYTHONUSERBASE and PIP_INSTALL_OPTION in your ~/.bashrc file:

echo 'export PYTHONUSERBASE=$HOME' >> $HOME/.bashrc
echo 'export PIP_INSTALL_OPTION="--user"' >> $HOME/.bashrc

Then, log out and back in again.

Then you can install with:

pip2.7 install package
permanent link

answered 08 Jan '14, 07:54

timg ♦♦
1.3k4
accept rate: 30%

edited 09 Jan '14, 05:21

ryans ♦♦
5.0k93460

How to make my webapp to use virtualenv ? My experience with virtualenv is only in development, not production.

(08 Jan '14, 08:07) WebOrCode

We have several community postslink text on how to use virtualenv.

(08 Jan '14, 08:34) timg ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×54
×2

question asked: 08 Jan '14, 05:44

question was seen: 19,443 times

last updated: 09 Jan '14, 05:21

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM