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.
Related
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 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?
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
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 have already tried using:
pip install --upgrade setuptools
pip install ez_setup
I need to install arviz to visualize the out of pystan.
I am using python 3 on windows 10 (anaconda distribution).