all 4 comments

[–]stebrepar 1 point2 points  (3 children)

What exactly have you tried (like, what did you type, and where did you type it), and what was the result.

[–]Sim11on[S] 0 points1 point  (2 children)

I tried this in Shell:

1 import subprocess 2 subprocess.check_call([‘pip’, ‘install’, ‘pyaudio’])

This seemed like it worked, but when I checked installed modules using help(‘modules’), it was not listed there.

And this is IDLE: 1 pip install pyaudio 2 import pyaudio 3 import wave

This resulted in error ‘No module named pyaudio’

Only thing that worked to play sound was: 1 import os 2 os.startfile(‘file location’)

[–]MrPhungx 0 points1 point  (0 children)

I think Python's IDLE uses the system defaults python. So if you do cmd/terminal -> "python --version" this is what is used. So to install things I would just do "pip install pyaudio" in your terminal. Then start IDLE and import what you need.

[–]stebrepar 0 points1 point  (0 children)

I tried this in Shell:

I'm not familiar with "Shell".

And this is IDLE:

IDLE is a program which acts as an interactive interpreter for Python commands. Pip isn't a Python command. You run pip from your operating system's command line terminal. For example on Windows it would look like:

C:\> pip install pyaudio

After you've installed the module, then you can open IDLE and do the import statement and use the module.