-2

Any time i try to install anything with pip i would get this type of error. I've updated my computer, updated visual studios, pip 20.0.2, python 3.8.2, and still nothing works, I've even tried reinstalling everything.

ERROR: https://i.stack.imgur.com/m8Yqv.png

Chris
  • 9
  • 1
  • Did you try running the pip install from the command line and not visual studio? – Jortega Apr 23 '20 at 20:27
  • duplicates https://stackoverflow.com/questions/33513522/when-installing-pyaudio-pip-cannot-find-portaudio-h-in-usr-local-include – Alexander Apr 23 '20 at 20:28
  • It's not a duplicate because that issue was on OSX with brew, and this person is on Windows and is not using brew. – Robert Hafner Apr 23 '20 at 20:31
  • Jortega, I have tried it from visual studios, cmd, and the pycharm terminals. – Chris Apr 23 '20 at 20:41
  • 2
    Please do not share information as images unless absolutely necessary. See: https://meta.stackoverflow.com/questions/303812/discourage-screenshots-of-code-and-or-errors, https://idownvotedbecau.se/imageofcode, https://idownvotedbecau.se/imageofanexception/. – AMC Apr 23 '20 at 20:52
  • 1
    Does this answer your question? [Python package installation issues: PyAudio, PortAudio](https://stackoverflow.com/questions/51992375/python-package-installation-issues-pyaudio-portaudio) – AMC Apr 23 '20 at 20:53
  • @tedivm Fear not, there is a QA for Windows, too: https://stackoverflow.com/questions/51992375/python-package-installation-issues-pyaudio-portaudio – AMC Apr 23 '20 at 20:54
  • i had to share it as a question because no matter how i formatted it 'stack overflow' didn't like it and i couldn't send this question. – Chris Apr 23 '20 at 21:23
  • @Chris, download and install the `whl` file. Simply download `PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl` from [here](https://www.lfd.uci.edu/~gohlke/pythonlibs/#pyaudio) and then do `pip install path/to/PyAudio‑0.2.11‑cp38‑cp38‑win_amd64.whl` – FlyingTeller Apr 23 '20 at 21:38

2 Answers2

0

You need to install PortAudio on your system to use one of the libraries you're trying to install.

Robert Hafner
  • 3,364
  • 18
  • 23
-1

try using pip3 instead of pip or check paths

Blindshot
  • 1
  • 4