I have installed Python Pip for the purpose of installing Pyaudio.
I have downloaded PyAudio‑0.2.8‑cp26‑none‑win32.whl from http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio and placed it in my desktop. Here is the CMD log.
C:\Users\Shadow Mori> cd C:\users\shadow mori\desktop
C:\Users\Shadow Mori\Desktop> pip install PyAudio‑0.2.8‑cp26‑none‑win32.whl
'pip' is not recognized as an internal of external command,
operable program or batch file.
C:\Users\Shadow Mori\Desktop>
When I change the directory to C:\python26\scripts\ pip is recognised, but I can't get to PyAudio‑0.2.8‑cp26‑none‑win32.whl no matter what the directory is. I have tried adding the System Variable of C:\python26\Scripts\ like you do with Python but it doesn't work either.
Thanks in advance for any help at all.
When you type a command in the command prompt, it looks in a number of directories to find the executable. This is usually the current directory and the directories listed in the PATH environment variable.
A one-off solution is to provide the full path to the command, which skips the search entirely and tells windows exactly what you want to do...
cd C:\users\shadow mori\desktop
C:\python26\scripts\pip install PyAudio‑0.2.8‑cp26‑none‑win32.whl
(You could also cd
to the scripts directory and instead provide the full path to the .whl
)
A more permanent solution is to add the python scripts folder to your path.
This varies depending on your version of windows, but on Win7 and 8 is Control Panel->System->Advanced System Settings->Environment Variables (button)
In the bottom half of the window, find PATH and edit it.
Add ;C:\Python26\Scripts
to the end of the existing value. The semicolon is to separate it from previous values. Eg:
The change will take effect for all new command prompts. You should now be able to run pip
(or any other command in the scripts directory) from any location.