-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathinstall-python.html
266 lines (246 loc) · 9.38 KB
/
install-python.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="style.css">
<link rel="icon" href="logo/favicon.ico" type="image/vnd.microsoft.icon">
<title>0install: Old Python version</title>
</head>
<body><table>
<tr>
<td class="logo"><a href="/"><img src="logo/zeroinstall-icon.png" width="96" height="95" alt="logo"></a></td>
<td class="header">
<form id="searchbox_010445122533180311286:4ee7gv0f1pc" action="https://google.com/cse" style="float: right; padding-right: 1em;"><p><input type="hidden" name="cx" value="010445122533180311286:4ee7gv0f1pc"><input name="q" type="search" size="14"><input type="submit" name="sa" value="Search"><input type="hidden" name="cof" value="FORID:0"></p></form>
<h1><a href="/">Zero Install</a></h1>
<p class="tagline">the antidote to app-stores</p>
</td>
</tr>
<tr>
<td class="sidebar"><ul class="pages">
<li class="open">
<a href=".">Overview
</a><ul>
<li class="closed"><a href="why.html">About 0install
</a></li>
<li class="closed"><a href="features.html">Features
</a></li>
</ul>
</li>
<li class="open">
<a href="news.html">News
</a><ul>
<li class="leaf"><a href="0install-2.0.html">0install 2.0
</a></li>
<li class="leaf"><a href="roadmap.html">Roadmap
</a></li>
</ul>
</li>
<li class="open">
<a href="injector.html">Download 0install
</a><ul>
<li class="leaf"><a href="install-linux.html">Linux
</a></li>
<li class="closed"><a href="install-osx.html">OS X
</a></li>
<li class="open">
<a href="install-source.html">Source code
</a><ul><li class="leaf"><a href="install-python.html" class="selected">Old Python version
</a></li></ul>
</li>
<li class="leaf"><a href="install-unix.html">Unix
</a></li>
<li class="leaf"><a href="install-windows.html">Windows
</a></li>
</ul>
</li>
<li class="leaf"><a href="injector-feeds.html">Featured apps
</a></li>
<li class="open">
<a href="doc.html">Documentation
</a><ul>
<li class="closed"><a href="users.html">For users
</a></li>
<li class="closed"><a href="packagers.html">For packagers
</a></li>
<li class="closed"><a href="dev.html">For developers
</a></li>
<li class="closed"><a href="tools.html">Tool reference
</a></li>
<li class="closed"><a href="injector-specs.html">Specifications
</a></li>
</ul>
</li>
<li class="open">
<a href="support.html">Support
</a><ul>
<li class="leaf"><a href="support.html#lists">Mailing lists
</a></li>
<li class="leaf"><a href="support.html#bugs">Bug tracker
</a></li>
<li class="leaf"><a href="faq.html">FAQ
</a></li>
<li class="leaf"><a href="injector-trouble.html">Troubleshooting
</a></li>
<li class="leaf"><a href="support.html#commercial">Commercial
</a></li>
</ul>
</li>
<li class="leaf"><a href="legal.html">Legal issues
</a></li>
<li class="leaf"><a href="https://github.com/0install">GitHub
</a></li>
<li class="leaf"><a href="http://sourceforge.net/project/showfiles.php?group_id=76468">SF file releases
</a></li>
</ul></td>
<td class="main">
<div class="main">
<table><tr>
<td style="vertical-align: top">
<h2>Install from Source</h2>
<p>
<strong>This is the older (but better tested) version of 0install. Consider trying the newer <a href="install-source.html">OCaml version</a> (faster, but less well tested).</strong>
0install 2.3 is written entirely in Python, so installing from source is quite simple.
</p>
</td>
<td style="vertical-align: top"><div class="program"><table>
<tr>
<th>Name</th>
<td>0install</td>
</tr>
<tr>
<th>Maintainer</th>
<td>Thomas Leonard</td>
</tr>
<tr>
<th>License</th>
<td>GNU Lesser General Public License</td>
</tr>
<tr>
<th>SCM</th>
<td><a href="https://github.com/0install/0install">GIT repository</a></td>
</tr>
</table></div></td>
</tr></table>
<p>
To use 0install, you will need the following (these are installed on most Linux systems by default):
</p>
<ul>
<li>
<a href="http://python.org">Python</a> (version 2.6, 2.7 or 3.2+).</li>
<li>
<a href="https://live.gnome.org/PyGObject/">PyGObject</a> (this is a dependency of PyGTK, but is also available separately). If PyGObject is not available, 0install can use <a href="http://code.google.com/p/tulip/">Tulip</a> instead (which is pure Python, but requires Python >= 3.3).</li>
<li>
<a href="http://www.gnupg.org/">GnuPG</a> (to check the digital signatures).</li>
</ul>
<p>Note: the last version to support Python 2.5 was 0install 1.0.</p>
<p>
For the optional (but recommended) GUI:
</p>
<ul>
<li>If using <b>Python 2</b>: <a href="http://freshmeat.net/projects/pygtk/?branch_id=12503">PyGTK 2.12</a> or later.</li>
<li>If using <b>Python 3</b>: GTK3, including the GIRepository bindings (gir1.2-gtk-3.0).</li>
<li>
<a href="http://portland.freedesktop.org/wiki/">xdg-utils</a> (optional; GNOME and KDE desktop integration).</li>
</ul>
<p>
If you are looking for a package, try the <a href="injector.html">main downloads page</a>.
</p>
<h2 id="idm27">Instructions</h2>
<p>
Download the latest .tar.bz2 archive from <a href="https://sourceforge.net/projects/zero-install/files/0install/">the
SF.net download page</a> (and the corresponding .sig file if you want to verify it), or using wget:
</p>
<pre>
$ <b>wget https://downloads.sf.net/project/zero-install/0install/2.3.4/0install-2.3.4.tar.bz2</b>
$ <b>wget https://downloads.sf.net/project/zero-install/0install/2.3.4/0install-2.3.4.tar.bz2.sig</b>
</pre>
<p>
Check that the signature is correct using GPG (this also ensures that GPG is installed correctly).
You'll need <a href="http://0install.net/public_key.gpg">my GPG key</a>, which you can download and import
using --recv-key (or <a href="http://rox.sourceforge.net/desktop/GPG">manually</a>):
</p>
<pre>
$ <b>gpg --recv-key --keyserver pgp.mit.edu CA74D8BA</b>
$ <b>gpg 0install-2.3.4.tar.bz2.sig</b>
gpg: Signature made Sun Nov 16 17:21:21 2014 UTC using RSA key ID CA74D8BA
gpg: Good signature from "Thomas Leonard <XXXXX@gmail.com>"
gpg: Good signature from "Thomas Leonard <XXXXX@users.sourceforge.net>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg: There is no indication that the signature belongs to the owner.
Primary key fingerprint: DA98 25AE CAD0 8975 7CDA BD8E 0713 3F96 CA74 D8BA
</pre>
<p>
The warning is just to tell you that you haven't yet established that the key really
belongs to me (ultra-paranoid users will now cross-check the finger-print using
some other source of information).
</p>
<p>
You should now extract the archive, and change directory inside it:
</p>
<pre>
$ <b>tar xjf 0install-2.3.4.tar.bz2</b>
$ <b>cd 0install-2.3.4</b>
</pre>
<table class="split">
<col id="col1">
<tr>
<th>Installing normally</th>
<th>Installing without root access</th>
</tr>
<tr>
<td>
<p>For a normal install, either su to root, install, and exit from root, or use sudo:</p>
<pre>$ <b>sudo python setup.py install</b>
</pre>
</td>
<td>
<p>
If you don't have the root password, use this command.
You'll need to make sure that ~/bin is in $PATH in this case.
</p>
<pre>$ <b>python setup.py install --home ~ --install-data ~/.local</b>
$ <b>export PATH=$HOME/bin:$PATH</b>
</pre>
<p>
Logging out and back in again will ensure $PATH and the Applications menu get updated correctly,
on Ubuntu at least.
</p>
</td>
</tr>
</table>
<dl>
<dt id="idm61">choosing the Python version</dt>
<dd>The installed scripts will use whichever version of python you used for the install. e.g. use "<b>python3 setup.py ...</b>" if you want to force Python 3.</dd>
<dt id="idm64">error: invalid Python installation: unable to open /usr/lib/python2.X/config/Makefile</dt>
<dd>You need to install the <i>python-dev</i> package, not just <i>python</i>.</dd>
<dt id="idm68">package init file 'zeroinstall/0launch-gui/__init__.py' not found (or not a regular file)</dt>
<dd>This is just a warning and is harmless.</dd>
</dl>
<p>
You now have some new commands: <b>0launch</b>, which takes the URL of a program and runs it, and
<b>0install</b>, which provides access to other features.
</p>
<div class="note">Note (mainly for packagers): there is an optional OCaml front-end, which makes starting
applications (and tab-completion) faster. Do "make ocaml" before installing to get that. You'll need to
install OCaml and various extra library packages to build this.</div>
<div class="quicklinks"><div class="row"><a href="users.html"><img src="tango/go-next.png" alt="" width="48" height="48"><br>Continue to tutorial</a></div></div>
</div>
<div class="footer">
<p>
Web-site © Copyright 2003-2019 Thomas Leonard and others<br></p>
<p>
Permission is granted to use the site (excluding the software,
which is licensed separately)<br>in accordance with the terms of the
<a href="https://creativecommons.org/licenses/by-sa/2.5/">Creative
Commons Attribution-ShareAlike 2.5 license</a>.
</p>
<p>
Some of the icons are from (or based on icons from) the
<a href="http://tango.freedesktop.org/Tango_Desktop_Project">Tango Desktop Project</a> and the <a href="http://www.openclipart.org/">Open Clipart Library</a>.
</p>
<span class="logos"><a href="https://creativecommons.org/licenses/by-sa/2.5/"><img src="https://creativecommons.org/images/public/somerights20.gif" alt="Attribution-ShareAlike" width="88" height="31"></a></span>
</div>
</td>
</tr>
</table></body>
</html>