Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #79000
| Path | csiph.com!usenet.pasdenom.info!poup.poupinou.org!news.etla.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.003 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'subject:Python': 0.06; 'dev': 0.07; 'explicit': 0.07; 'importerror:': 0.07; 'bits': 0.09; 'cc:addr:python-list': 0.11; 'python': 0.11; '2.7?': 0.16; 'after,': 0.16; 'easier.': 0.16; 'fetch': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'modules,': 0.16; 'rebuild': 0.16; 'subject:install': 0.16; 'subject:versions': 0.16; 'sudo': 0.16; 'url:ftp': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'module': 0.19; 'trying': 0.19; 'work,': 0.20; 'manual': 0.22; 'cc:addr:python.org': 0.22; 'install': 0.23; 'mon,': 0.24; 'cc:2**0': 0.24; 'this:': 0.26; 'header:In-Reply-To:1': 0.27; 'am,': 0.29; 'start,': 0.30; 'message-id:@mail.gmail.com': 0.30; '(which': 0.31; 'included': 0.31; 'program,': 0.31; 'getting': 0.31; 'easier': 0.31; '13,': 0.31; 'python"': 0.31; 'subject:what': 0.31; 'stuff': 0.32; 'run': 0.32; 'url:python': 0.33; 'skip:_ 10': 0.34; 'subject:the': 0.34; 'basic': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; '2.6': 0.36; 'opposed': 0.36; 'method': 0.36; 'subject:?': 0.36; 'url:org': 0.36; 'should': 0.36; 'needed': 0.38; 'skip:- 10': 0.38; 'track': 0.38; 'that,': 0.38; 'even': 0.60; 'easy': 0.60; "you're": 0.61; 'you.': 0.62; 'more': 0.64; 'believe': 0.68; 'as:': 0.81; './configure': 0.84; 'apt-get': 0.84; 'build-dep': 0.84; 'ships': 0.84; 'source?': 0.84; '"apt-get': 0.91; 'to:none': 0.92 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=p2gEVowVLH4DWvAffpohGFAy3bqbzN3ObwrXLUDX2wc=; b=jBDaAeKd23R0gBkYlwKtT+pD9X2X+PpjsSj4/Q0ZSKiUcLKKtP2dQ+F48zaM9WycM3 Q970bhpZtSVAG5QPmzDW+AAt7n+Stwdr3xc7q8kTpQ8AK6BdA4h4Q2RxKhU+3ck5bzMo vWGAEYq44sIXrR58tkw7BfFnecVsNcZ4D3k8E7u+hpMhU5Qrp6/eX45OCzXY/0tZE92z IgjU1P13w55H4FXOFQvs8yHmwSt8/eyA+e287RYwCCLorf/E8P/i5XCApmDRZ+f3yXwn ZXRrp3fVTe45cJipqCDTUVg42/8bO35VbqwEL1Vhqn4wGbs1pN6JUKjvsy5eTuoj3xMH iORQ== |
| MIME-Version | 1.0 |
| X-Received | by 10.42.92.129 with SMTP id t1mr28986966icm.59.1413123605336; Sun, 12 Oct 2014 07:20:05 -0700 (PDT) |
| In-Reply-To | <1749456658.291277.1413120785276.JavaMail.yahoo@jws10751.mail.gq1.yahoo.com> |
| References | <1749456658.291277.1413120785276.JavaMail.yahoo@jws10751.mail.gq1.yahoo.com> |
| Date | Mon, 13 Oct 2014 01:20:05 +1100 |
| Subject | Re: what is the easiest way to install multiple Python versions? |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | Python <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.14789.1413123608.18130.python-list@python.org> (permalink) |
| Lines | 48 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1413123608 news.xs4all.nl 2937 [2001:888:2000:d::a6]:59395 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:79000 |
Show key headers only | View raw
On Mon, Oct 13, 2014 at 12:33 AM, Albert-Jan Roskam <fomcl@yahoo.com.dmarc.invalid> wrote: > *) Make altinstall > sudo apt-get install libsqlite3-dev libbz2-dev libgdbm-dev libncurses5-dev tk-dev zlib1g-dev > wget https://www.python.org/ftp/python/2.6.8/Python-2.6.8.tgz > tar -zxvf Python-2.6.8.tgz > cd Python-2.6.8/ > ./configure --prefix=/usr/local > make # see 'failed stuff' below > sudo make altinstall > mkvirtualenv -p /usr/local/bin/python2.6 python26 # ImportError: No module named zlib > > > # Failed stuff > Failed to find the necessary bits to build these modules: > _bsddb _curses _curses_panel > _hashlib _sqlite3 _ssl > bsddb185 bz2 dbm > dl gdbm imageop > linuxaudiodev ossaudiodev readline > sunaudiodev zlib Generally, this is the method I would recommend. For a start, run this: sudo apt-get build-dep python This is in place of your explicit "apt-get install" command; Debian keeps track of the dev packages needed to rebuild a given program, and will go fetch them for you. After that, just look at exactly what packages you're still lacking. You may well find that you don't have all the dependencies for all Python modules, as some of them might not be included in a basic "apt-get install python" installation; the solution is a bit more "apt-get build-dep" work, or some manual hunting down of dev packages (which may well be easier in some situations). But what version of Debian are you after, and why are you trying to build a 2.6.8 from source? On Debian Wheezy, getting hold of Python 2.6 should be as easy as: $ sudo apt-get install python2.6 I believe Squeeze ships 2.6 as its standard system Python, so it's even easier. Are you on the unreleased Jessie? And why do you even need 2.6 as opposed to 2.7? ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: what is the easiest way to install multiple Python versions? Chris Angelico <rosuav@gmail.com> - 2014-10-13 01:20 +1100
csiph-web