File: download.html

package info (click to toggle)
python-pyo 1.0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 52,332 kB
  • sloc: python: 135,133; ansic: 127,822; javascript: 16,116; sh: 395; makefile: 388; cpp: 242
file content (192 lines) | stat: -rw-r--r-- 10,131 bytes parent folder | download | duplicates (2)
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

<!DOCTYPE html>

<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

    <title>Installing pyo with pip &#8212; Pyo 1.0.5 documentation</title>
    <link rel="stylesheet" type="text/css" href="_static/pygments.css" />
    <link rel="stylesheet" type="text/css" href="_static/agogo.css" />
    <link rel="stylesheet" type="text/css" href="_static/sphinx-codeautolink.css" />
    <link rel="stylesheet" type="text/css" href="_static/autoclasstoc.css" />
    <script data-url_root="./" id="documentation_options" src="_static/documentation_options.js"></script>
    <script src="_static/jquery.js"></script>
    <script src="_static/underscore.js"></script>
    <script src="_static/_sphinx_javascript_frameworks_compat.js"></script>
    <script src="_static/doctools.js"></script>
    <script src="_static/sphinx_highlight.js"></script>
    <link rel="shortcut icon" href="_static/E-PyoIcon.ico"/>
    <link rel="author" title="About these documents" href="about.html" />
    <link rel="index" title="Index" href="genindex.html" />
    <link rel="search" title="Search" href="search.html" />
    <link rel="next" title="Compiling pyo from sources" href="compiling.html" />
    <link rel="prev" title="About pyo" href="about.html" /> 
  </head><body>
    <div class="header-wrapper" role="banner">
      <div class="header">
        <div class="headertitle"><a
          href="index.html">Pyo 1.0.5 documentation</a></div>
        <div class="rel" role="navigation" aria-label="related navigation">
          <a href="about.html" title="About pyo"
             accesskey="P">previous</a> |
          <a href="compiling.html" title="Compiling pyo from sources"
             accesskey="N">next</a> |
          <a href="genindex.html" title="General Index"
             accesskey="I">index</a>
        </div>
       </div>
    </div>

    <div class="content-wrapper">
      <div class="content">
        <div class="sidebar">
          
          <h3>Table of Contents</h3>
          <ul class="current">
<li class="toctree-l1"><a class="reference internal" href="about.html">About pyo</a></li>
<li class="toctree-l1 current"><a class="current reference internal" href="#">Installing pyo with pip</a></li>
<li class="toctree-l1"><a class="reference internal" href="compiling.html">Compiling pyo from sources</a></li>
<li class="toctree-l1"><a class="reference internal" href="structure.html">Structure of the library</a></li>
<li class="toctree-l1"><a class="reference internal" href="gettingstarted.html">Getting started</a></li>
<li class="toctree-l1"><a class="reference internal" href="winaudioinspect.html">Configuring the audio output (Windows)</a></li>
<li class="toctree-l1"><a class="reference internal" href="perftips.html">Improve performance of pyo programs</a></li>
</ul>
<ul>
<li class="toctree-l1"><a class="reference internal" href="api/index.html">API documentation</a></li>
<li class="toctree-l1"><a class="reference internal" href="examples/index.html">Examples</a></li>
<li class="toctree-l1"><a class="reference internal" href="tutorials/index.html">Advanced tutorials</a></li>
</ul>

          <div role="search">
            <h3 style="margin-top: 1.5em;">Search</h3>
            <form class="search" action="search.html" method="get">
                <input type="text" name="q" />
                <input type="submit" value="Go" />
            </form>
          </div>

        </div>
        <div class="document">
            
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body" role="main">
            
  <section id="installing-pyo-with-pip">
<h1>Installing pyo with pip<a class="headerlink" href="#installing-pyo-with-pip" title="Permalink to this heading">¶</a></h1>
<p>In most use cases the best way to install pyo on your system is by using a pre-built
package for your operating system. These packages are available through pip.
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),
and 3.7 to 3.11.
To install, run this command (if you have both python2 and python3 installed and want
to target python3, use <cite>pip3</cite>):</p>
<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>
</pre></div>
</div>
<p>If you are not sure to which version of python the <cite>pip</cite> command is bound to, you can
invoke it as a script from the <cite>python</cite> command.</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span><span class="c1"># for python 2</span>
python2 -m pip install --user pyo

<span class="c1"># for python 3.7</span>
python3.7 -m pip install --user pyo

<span class="c1"># for python 3.8 under Windows (`py` is the python launcher command)</span>
py -3.8 -m pip install --user pyo

<span class="c1"># if you want to install system-wide under MacOS or linux, use `sudo`</span>
sudo python3 -m pip install pyo
</pre></div>
</div>
<p>For instructions on building from source package, see <a class="reference external" href="compiling.html">Compiling pyo from sources</a>.
This information is useful mainly for advanced users.</p>
<section id="pyo-is-a-python-module">
<h2>Pyo is a python module…<a class="headerlink" href="#pyo-is-a-python-module" title="Permalink to this heading">¶</a></h2>
<p>… which means that python must be present (version 3.7 to 3.11)
on the system. If python is not installed, you can download it on
<a class="reference external" href="https://www.python.org/downloads/">python.org</a>.</p>
<p>Pyo also offers some GUI facilities to control or visualize the audio processing.
If you want to use all of pyo’s GUI features, you must install WxPython, available on
<a class="reference external" href="http://wxpython.org/download.php">wxpython.org</a> or with pip:</p>
<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>
</pre></div>
</div>
</section>
<section id="removing-older-version-of-pyo-prior-to-1-0-0">
<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>
<p>Prior to version 1.0.0, pyo was installed with binary installers on MacOS and Windows. <cite>pip</cite> knows
nothing about these files and therefore cannot automatically removed them. To avoid conflicts between
versions, it’s best to remove older installation of pyo.</p>
<p><strong>MacOS</strong></p>
<p>On MacOS, you can run this script for the version of python for which you want to use 1.0.0.</p>
<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>
<p>As an example, if you want to remove an old installation under python 3.6, run</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>sudo python3.6 cleanup_older_pyo_versions.py
</pre></div>
</div>
<p>You should also delete the <strong>E-pyo</strong> app in the <cite>Applications</cite> folder.</p>
<p><strong>Windows</strong></p>
<p>Under Windows, all you have to do is to run the uninstaller that comes with pyo to
remove all its components. It is located in the python root directory (ex.: C:\Python27)
and is named <cite>unins000.exe</cite>.</p>
<p><strong>linux</strong></p>
<p>On linux, if you installed pyo from the system’s package manager, just uninstall it.
If you compile pyo from sources, you have to delete the files manually (in site-packages
or dist-packages folder of your python distribution). Files to delete are:
pyo.py, pyo64.py, _pyo.so, _pyo64.so, pyolib/ and pyo…egg.</p>
</section>
<section id="running-the-epyo-text-editor">
<h2>Running the EPyo text editor<a class="headerlink" href="#running-the-epyo-text-editor" title="Permalink to this heading">¶</a></h2>
<p>To be “pip” compliant, I’ve had to make a choice and removed the pre-built E-Pyo application
previously installed alongside pyo. But the truth is that this application lives in a single
python script and can be easily used as long as WxPython is installed under the current python
distribution. The installation with <cite>pip</cite> puts this program under the <cite>Scripts</cite> folder (or <cite>bin</cite>
folder, depending on which system you are running) of the python distribution. If python’s path
is in your PATH environment variable (which should really be the case), all you have to do to start
EPyo is to run this command in a terminal or a command prompt:</p>
<div class="highlight-bash notranslate"><div class="highlight"><pre><span></span>epyo
</pre></div>
</div>
</section>
</section>


            <div class="clearer"></div>
          </div>
        </div>
      </div>
        </div>
        <div class="clearer"></div>
      </div>
    </div>

    <div class="footer-wrapper">
      <div class="footer">
        <div class="left">
          <div role="navigation" aria-label="related navigaton">
            <a href="about.html" title="About pyo"
              >previous</a> |
            <a href="compiling.html" title="Compiling pyo from sources"
              >next</a> |
            <a href="genindex.html" title="General Index"
              >index</a>
          </div>
          <div role="note" aria-label="source link">
          </div>
        </div>

        <div class="right">
          
    <div class="footer" role="contentinfo">
        &#169; Copyright 2021, Olivier Bélanger.
      Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 5.3.0.
    </div>
        </div>
        <div class="clearer"></div>
      </div>
    </div>

  </body>
</html>