WebFaction
Community site: login faq

I only have 2.(3-6) in ~/lib/

How can I install python 2.7. It's a requirement for a custom app I'm launching.

The underlying issue is that I need the latest distribute/pip because of version conflicts in the app I'm trying to bootstrap (zc.buildout). but the system python2.7 doesn't seem to work with the latest distribute.

$ python2.7 bootstrap.py -c develop.cfg 
Downloading http://pypi.python.org/packages/source/d/distribute/distribute-0.6.49.tar.gz
Extracting in /tmp/tmpZwVm2d
Now working in /tmp/tmpZwVm2d/distribute-0.6.49
Building a Distribute egg in /tmp/tmpEp2Baj
/tmp/tmpEp2Baj/distribute-0.6.49-py2.7.egg
Traceback (most recent call last):
  File "bootstrap.py", line 154, in <module>
    ws.require(requirement)
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 698, in require
    class Environment(object):
  File "build/bdist.linux-i686/egg/pkg_resources.py", line 600, in resolve

pkg_resources.VersionConflict: (setuptools 0.6c11 (/usr/local/lib/python2.7/site-packages), Requirement.parse('setuptools>=0.7'))

The following article has information regarding this as well: http://reinout.vanrees.org/weblog/2013/07/08/new-setuptools-buildout.html

asked 19 Jul '13, 06:28

andre
1129
accept rate: 0%

edited 19 Jul '13, 06:39


If you need a ~/lib/python2.7 directory, then you can simply create one by running "mkdir -p ~/lib/python2.7" in a SSH session.

Once you've done that, you can install the latest setuptools with "easy_install-2.7 setuptools==0.9.6", and your buildout commands should then work.

Hope that helps!

permanent link

answered 19 Jul '13, 14:51

seanf
12.2k41836
accept rate: 37%

Ty that worked

(20 Jul '13, 06:05) andre
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:

×337
×53
×52
×44
×3

question asked: 19 Jul '13, 06:28

question was seen: 3,172 times

last updated: 20 Jul '13, 06:05

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 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