SyntaxError: Non-ASCII character

Steven D'Aprano steve at pearwood.info
Sun Jul 17 10:49:36 EDT 2016


On Sun, 17 Jul 2016 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

No, but you do have to install pyaudio separately for each version of Python
you have.

So if you have installed Python 2.7 and 3.4, and Python 2.7 has pyaudio
installed, Python 3.4 cannot use the same one.



-- 
Steven
“Cheer up,” they said, “things could be worse.” So I cheered up, and sure
enough, things got worse.




More information about the Python-list mailing list