im trying to install pyAudio in pycharm in the trmiall and i get this
Collecting pyaudio Using cached PyAudio-0.2.11.tar.gz (37 kB)
Preparing metadata (setup.py) ... done Using legacy 'setup.py install'
for pyaudio, since package 'wheel' is not installed. Installing
collected packages: pyaudio Running setup.py install for pyaudio ...
error error: subprocess-exited-with-error
× Running setup.py install for pyaudio did not run successfully. │
exit code: 1 ╰─> [9 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
running build_ext
building '_portaudio' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools":
https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a
problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> pyaudio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
any idea how to do this in pycharm without installing any external librarys or module.
Related
When i'm going to install cuml and cugraph, getting this error
!pip install cuml-cu11 --extra-index-url=https://pypi.ngc.nvidia.com
!pip install cugraph-cu11 --extra-index-url=https://pypi.ngc.nvidia.com
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/, https://pypi.ngc.nvidia.com
Collecting cuml-cu11
Using cached cuml_cu11-23.2.0.tar.gz (6.5 kB)
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
Preparing metadata (setup.py) ... error
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Need a good solution to solve this issue.
I am trying to set a connection with Visual Studio Code with Databricks using pyenv following these instructions: https://docs.databricks.com/dev-tools/ide-how-to.html
When I try to install dbx (pip install dbx) I have an error on the cffi package. I am using Python 3.8.9 and pip 23.00.
The blocks of errors I get are:
Building wheels for collected packages: cffi
Building wheel for cffi (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
c/_cffi_backend.c:2:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Running setup.py clean for cffi
Failed to build cffi
Installing collected packages: cffi, binaryornot, aiosignal, gitpython, databricks-cli, cryptography, arrow, aiohttp, mlflow-skinny, jinja2-time, cookiecutter, dbx
Running setup.py install for cffi ... error
error: subprocess-exited-with-error
× Running setup.py install for cffi did not run successfully.
│ exit code: 1
...
c/_cffi_backend.c:2:10: fatal error: 'Python.h' file not found
#include <Python.h>
^~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure
× Encountered error while trying to install package. ╰─> cffi
In case it helps, the machine-software specifications are (sw_vers output):
ProductName: macOS
ProductVersion: 12.3
BuildVersion: 21E230
I am not a developer and I do not have much control about these things but I have read that it may be related to gcc. Here is the output of gcc --version:
Apple clang version 13.1.6 (clang-1316.0.21.2.5)
Target: arm64-apple-darwin21.4.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
On the other hand, it is clear that cffi is not installed since pip show cffi:
WARNING: Package(s) not found: cffi
I have been trying to install fastai in a virtual environment on my windows computer, and continue getting the error below.
I used conda to create a virtual environment, and am attempting to pip install fastai with Python 3.11.
Haven't had any issues installing other packages in this environment, so any thoughts would be appreciated.
Building wheel for bcolz (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [46 lines of output]
C:\Users\username\miniconda3\envs\Ron\Lib\site-packages\setuptools\installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
I have been on a number of forums, have tried pip install wheel and a pip3 install to no avail.
My system info is:
OS Name Microsoft Windows 11 Home
Version 10.0.22621 Build 22621
I have tried using "pip install yfinance"/"pip3 install yfinance"/"!pip install yfinance" in jupyter, but still give me error not able to install these packages.
Here is output showing after the last "Requirement already satisfied":
"Building wheels for collected packages: lxml
Building wheel for lxml (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [91 lines of output]"
" Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
*********************************************************************************
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lxml
Running setup.py clean for lxml
Failed to build lxml
Installing collected packages: lxml, yfinance
Running setup.py install for lxml ... error
error: subprocess-exited-with-error
× Running setup.py install for lxml did not run successfully.
│ exit code: 1
╰─> [86 lines of output]"
" Could not find function xmlCheckVersion in library libxml2. Is libxml2 installed?
Perhaps try: xcode-select --install
*********************************************************************************
error: command '/usr/bin/clang' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> lxml"
if someone can help, it would be greatly appreciated
Thank you in advance!
put 'xcode-select --install' in terminal, then 'pip install yfinance'
it works!!
I've installed pygraphviz using
conda install -c alubbock pygraphviz
But there was a problem since neato was missing, so I uninstalled the above and did the following.
From the suggestions given here I downloaded graphviz msi and installed in C:\Program Files (x86)\Graphviz2.38 and also installed.
Could someone suggest how to proceed from here?
import pygraphviz as pgv
doesn't work.
So I tried,
pip install pygraphviz
this returns
pygraphviz/graphviz_wrap.c(2987): fatal error C1083: Cannot open include file: 'graphviz/cgraph.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for pygraphviz
Running setup.py clean for pygraphviz
Failed to build pygraphviz
Installing collected packages: pygraphviz
Running setup.py install for pygraphviz ... error
I'm not sure how to install pygraphviz now.