SyntaxError: Non-ASCII character

Chris Angelico rosuav at gmail.com
Sun Jul 17 08:11:06 EDT 2016


On Sun, Jul 17, 2016 at 10:01 PM,  <ldompeling at casema.nl> wrote:
> I installed python 3.4 and set my python path to PYTONPATH:/usr/bin/python3.4
>
> When I try to import pyaudio then I get this error:
> Python 3.4.2 (default, Oct 19 2014, 13:31:11)
> [GCC 4.9.1] on linux
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import pyaudio
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named 'pyaudio'
>
> Do I have to set a path also for to find the modules

You shouldn't need to set your python path. But, what you may need to
do is install pyaudio under Python 3. Whatever you did for Py2, do
again for Py3 - for instance:
$ sudo python3 -m pip install pyaudio

ChrisA



More information about the Python-list mailing list