Guest User

pyaudio_install_issue

a guest
Mar 27th, 2016
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. abhishek@vaio:/etc/apt/sources.list.d$ sudo pip install pyaudio --upgrade
  2. The directory '/home/abhishek/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  3. The directory '/home/abhishek/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  4. Collecting pyaudio
  5. Downloading PyAudio-0.2.9.tar.gz (289kB)
  6. 100% |████████████████████████████████| 296kB 540kB/s
  7. Installing collected packages: pyaudio
  8. Found existing installation: PyAudio 0.2.8
  9. DEPRECATION: Uninstalling a distutils installed project (pyaudio) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
  10. Uninstalling PyAudio-0.2.8:
  11. Successfully uninstalled PyAudio-0.2.8
  12. Running setup.py install for pyaudio ... error
  13. Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-_Dzv5w/pyaudio/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4sW43K-record/install-record.txt --single-version-externally-managed --compile:
  14. running install
  15. running build
  16. running build_py
  17. creating build
  18. creating build/lib.linux-x86_64-2.7
  19. copying src/pyaudio.py -> build/lib.linux-x86_64-2.7
  20. running build_ext
  21. building '_portaudio' extension
  22. creating build/temp.linux-x86_64-2.7
  23. creating build/temp.linux-x86_64-2.7/src
  24. x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c src/_portaudiomodule.c -o build/temp.linux-x86_64-2.7/src/_portaudiomodule.o
  25. src/_portaudiomodule.c:28:20: fatal error: Python.h: No such file or directory
  26. compilation terminated.
  27. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
  28.  
  29. ----------------------------------------
  30. Rolling back uninstall of PyAudio
  31. Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-_Dzv5w/pyaudio/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-4sW43K-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-_Dzv5w/pyaudio/
Add Comment
Please, Sign In to add comment