ERROR installing dbx - pip install dbx - pipenv error cffi - pip

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

Related

Error Preparing metadata (setup.py) ... error while installing STAMP

I am trying to install (linux) STAMP so I can analyze my PICRUST output. The code I'm following is:
sudo apt-get install libblas-dev liblapack-dev gfortran
sudo apt-get install freetype* python-pip python-dev python-numpy python-scipy python-matplotlib
sudo pip install STAMP
The error I get is:
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─\> \[1 lines of output\]
Only Python 2.7 and 3.3 are supported.
\[end of output\]
note: This error originates from a subprocess, and is likely not a problem with pip.
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.
I created a conda environment with python 2.7 and another one with python 3.3 but in both of them I keep getting the same error. Any ideas on how I could install STAMP?

Error when installing serverless benchmark

Running setup.py install for pycurl: started
Running setup.py install for pycurl: finished with status 'error'
error: subprocess-exited-with-error
× Running setup.py install for pycurl did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
Using curl-config (libcurl 7.81.0)
Using SSL library: GnuTLS
justinchigu#justinchigu-VirtualBox:~/serverless-benchmarks$ ./install.py --aws --azure --gcp --openwhisk --local
I am trying to install the above serverless benchmark which I git cloned

Pip install fails to find the build-system.requires package

I have a docker image with poetry-core installed and inside the container I tried to run a pip install of project and it failed with the package not found error
r
oot#test-86978fffbb-6rx79:/home# /usr/local/bin/python3 -m pip show poetry-core
Name: poetry-core
Version: 1.0.8
Summary: Poetry PEP 517 Build Backend
Home-page: https://github.com/python-poetry/poetry-core
Author: Sébastien Eustace
Author-email: sebastien#eustace.io
License: MIT
Location: /usr/local/lib/python3.9/site-packages
Requires:
Required-by:
My pyproject.toml
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
When I run pip install with internet disabled, it fails not able to find the poetry-core
root#test-86978fffbb-6rx79:/app# /usr/local/bin/python3 -m pip install /app/
Processing /app
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
? exit code: 1
??> [2 lines of output]
ERROR: Could not find a version that satisfies the requirement poetry-core>=1.0.0 (from versions: none)
ERROR: No matching distribution found for poetry-core>=1.0.0
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
? exit code: 1
??> See above for output.

pycharm not wanting to install pyAudio

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.

Error on installing any package i.e. yfinance or finvizfinance on mac in Jupyter

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!!

Resources