Debian Codegraph @

docs/download.html

raw
1
2 <!DOCTYPE html>
3
4 <html lang="en">
5 <head>
6 <meta charset="utf-8" />
7 <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />
8
9 <title>Installing pyo with pip &#8212; Pyo 1.0.5 documentation</title>
10 <link rel="stylesheet" type="text/css" href="_static/pygments.css" />
11 <link rel="stylesheet" type="text/css" href="_static/agogo.css" />
12 <link rel="stylesheet" type="text/css" href="_static/sphinx-codeautolink.css" />
13 <link rel="stylesheet" type="text/css" href="_static/autoclasstoc.css" />
14 <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
15 <script src="_static/jquery.js"></script>
16 <script src="_static/underscore.js"></script>
17 <script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
18 <script src="_static/doctools.js"></script>
19 <script src="_static/sphinx_highlight.js"></script>
20 <link rel="shortcut icon" href="_static/E-PyoIcon.ico"/>
21 <link rel="author" title="About these documents" href="about.html" />
22 <link rel="index" title="Index" href="genindex.html" />
23 <link rel="search" title="Search" href="search.html" />
24 <link rel="next" title="Compiling pyo from sources" href="compiling.html" />
25 <link rel="prev" title="About pyo" href="about.html" />
26 </head><body>
27 <div class="header-wrapper" role="banner">
28 <div class="header">
29 <div class="headertitle"><a
30 href="index.html">Pyo 1.0.5 documentation</a></div>
31 <div class="rel" role="navigation" aria-label="related navigation">
32 <a href="about.html" title="About pyo"
33 accesskey="P">previous</a> |
34 <a href="compiling.html" title="Compiling pyo from sources"
35 accesskey="N">next</a> |
36 <a href="genindex.html" title="General Index"
37 accesskey="I">index</a>
38 </div>
39 </div>
40 </div>
41
42 <div class="content-wrapper">
43 <div class="content">
44 <div class="sidebar">
45
46 <h3>Table of Contents</h3>
47 <ul class="current">
48 <li class="toctree-l1"><a class="reference internal" href="about.html">About pyo</a></li>
49 <li class="toctree-l1 current"><a class="current reference internal" href="#">Installing pyo with pip</a></li>
50 <li class="toctree-l1"><a class="reference internal" href="compiling.html">Compiling pyo from sources</a></li>
51 <li class="toctree-l1"><a class="reference internal" href="structure.html">Structure of the library</a></li>
52 <li class="toctree-l1"><a class="reference internal" href="gettingstarted.html">Getting started</a></li>
53 <li class="toctree-l1"><a class="reference internal" href="winaudioinspect.html">Configuring the audio output (Windows)</a></li>
54 <li class="toctree-l1"><a class="reference internal" href="perftips.html">Improve performance of pyo programs</a></li>
55 </ul>
56 <ul>
57 <li class="toctree-l1"><a class="reference internal" href="api/index.html">API documentation</a></li>
58 <li class="toctree-l1"><a class="reference internal" href="examples/index.html">Examples</a></li>
59 <li class="toctree-l1"><a class="reference internal" href="tutorials/index.html">Advanced tutorials</a></li>
60 </ul>
61
62 <div role="search">
63 <h3 style="margin-top: 1.5em;">Search</h3>
64 <form class="search" action="search.html" method="get">
65 <input type="text" name="q" />
66 <input type="submit" value="Go" />
67 </form>
68 </div>
69
70 </div>
71 <div class="document">
72
73 <div class="documentwrapper">
74 <div class="bodywrapper">
75 <div class="body" role="main">
76
77 <section id="installing-pyo-with-pip">
78 <h1>Installing pyo with pip<a class="headerlink" href="#installing-pyo-with-pip" title="Permalink to this heading">¶</a></h1>
79 <p>In most use cases the best way to install pyo on your system is by using a pre-built
80 package for your operating system. These packages are available through pip.
81 Python supported version are 2.7 (up to 1.0.1), 3.5 (up to 1.0.1), 3.6 (up to 1.0.4),
82 and 3.7 to 3.11.
83 To install, run this command (if you have both python2 and python3 installed and want
84 to target python3, use <cite>pip3</cite>):</p>
85 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="o">--</span><span class="n">user</span> <span class="n">pyo</span>
86 </pre></div>
87 </div>
88 <p>If you are not sure to which version of python the <cite>pip</cite> command is bound to, you can
89 invoke it as a script from the <cite>python</cite> command.</p>
90 <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># for python 2</span>
91 python2 -m pip install --user pyo
92
93 <span class="c1"># for python 3.7</span>
94 python3.7 -m pip install --user pyo
95
96 <span class="c1"># for python 3.8 under Windows (`py` is the python launcher command)</span>
97 py -3.8 -m pip install --user pyo
98
99 <span class="c1"># if you want to install system-wide under MacOS or linux, use `sudo`</span>
100 sudo python3 -m pip install pyo
101 </pre></div>
102 </div>
103 <p>For instructions on building from source package, see <a class="reference external" href="compiling.html">Compiling pyo from sources</a>.
104 This information is useful mainly for advanced users.</p>
105 <section id="pyo-is-a-python-module">
106 <h2>Pyo is a python module…<a class="headerlink" href="#pyo-is-a-python-module" title="Permalink to this heading">¶</a></h2>
107 <p>… which means that python must be present (version 3.7 to 3.11)
108 on the system. If python is not installed, you can download it on
109 <a class="reference external" href="https://www.python.org/downloads/">python.org</a>.</p>
110 <p>Pyo also offers some GUI facilities to control or visualize the audio processing.
111 If you want to use all of pyo’s GUI features, you must install WxPython, available on
112 <a class="reference external" href="http://wxpython.org/download.php">wxpython.org</a> or with pip:</p>
113 <div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="n">pip</span> <span class="n">install</span> <span class="o">--</span><span class="n">user</span> <span class="n">wxPython</span>
114 </pre></div>
115 </div>
116 </section>
117 <section id="removing-older-version-of-pyo-prior-to-1-0-0">
118 <h2>Removing older version of pyo (prior to 1.0.0)<a class="headerlink" href="#removing-older-version-of-pyo-prior-to-1-0-0" title="Permalink to this heading">¶</a></h2>
119 <p>Prior to version 1.0.0, pyo was installed with binary installers on MacOS and Windows. <cite>pip</cite> knows
120 nothing about these files and therefore cannot automatically removed them. To avoid conflicts between
121 versions, it’s best to remove older installation of pyo.</p>
122 <p><strong>MacOS</strong></p>
123 <p>On MacOS, you can run this script for the version of python for which you want to use 1.0.0.</p>
124 <p><a class="reference external" href="https://github.com/belangeo/pyo/blob/master/scripts/cleanup_older_pyo_versions.py">https://github.com/belangeo/pyo/blob/master/scripts/cleanup_older_pyo_versions.py</a></p>
125 <p>As an example, if you want to remove an old installation under python 3.6, run</p>
126 <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo python3.6 cleanup_older_pyo_versions.py
127 </pre></div>
128 </div>
129 <p>You should also delete the <strong>E-pyo</strong> app in the <cite>Applications</cite> folder.</p>
130 <p><strong>Windows</strong></p>
131 <p>Under Windows, all you have to do is to run the uninstaller that comes with pyo to
132 remove all its components. It is located in the python root directory (ex.: C:\Python27)
133 and is named <cite>unins000.exe</cite>.</p>
134 <p><strong>linux</strong></p>
135 <p>On linux, if you installed pyo from the system’s package manager, just uninstall it.
136 If you compile pyo from sources, you have to delete the files manually (in site-packages
137 or dist-packages folder of your python distribution). Files to delete are:
138 pyo.py, pyo64.py, _pyo.so, _pyo64.so, pyolib/ and pyo…egg.</p>
139 </section>
140 <section id="running-the-epyo-text-editor">
141 <h2>Running the EPyo text editor<a class="headerlink" href="#running-the-epyo-text-editor" title="Permalink to this heading">¶</a></h2>
142 <p>To be “pip” compliant, I’ve had to make a choice and removed the pre-built E-Pyo application
143 previously installed alongside pyo. But the truth is that this application lives in a single
144 python script and can be easily used as long as WxPython is installed under the current python
145 distribution. The installation with <cite>pip</cite> puts this program under the <cite>Scripts</cite> folder (or <cite>bin</cite>
146 folder, depending on which system you are running) of the python distribution. If python’s path
147 is in your PATH environment variable (which should really be the case), all you have to do to start
148 EPyo is to run this command in a terminal or a command prompt:</p>
149 <div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>epyo
150 </pre></div>
151 </div>
152 </section>
153 </section>
154
155
156 <div class="clearer"></div>
157 </div>
158 </div>
159 </div>
160 </div>
161 <div class="clearer"></div>
162 </div>
163 </div>
164
165 <div class="footer-wrapper">
166 <div class="footer">
167 <div class="left">
168 <div role="navigation" aria-label="related navigaton">
169 <a href="about.html" title="About pyo"
170 >previous</a> |
171 <a href="compiling.html" title="Compiling pyo from sources"
172 >next</a> |
173 <a href="genindex.html" title="General Index"
174 >index</a>
175 </div>
176 <div role="note" aria-label="source link">
177 </div>
178 </div>
179
180 <div class="right">
181
182 <div class="footer" role="contentinfo">
183 &#169; Copyright 2021, Olivier Bélanger.
184 Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.3.0.
185 </div>
186 </div>
187 <div class="clearer"></div>
188 </div>
189 </div>
190
191 </body>
192 </html>