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

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?

Related

Error Installing FastAI on Windows: bdist_wheel did not run successfully

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

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.

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

Pipx failed to build packages

When I run the command pipx install eth-brownie I receive the following error message,
fatal error from pip prevented installation. Full pip output in file:
/Users/gentgjonbalaj/.local/pipx/logs/cmd_2021-10-22_11.10.14_pip_errors.log
pip failed to build package:
cytoolz
Some possibly relevant errors from pip install:
cytoolz/functoolz.c:23087:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
cytoolz/functoolz.c:23092:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
cytoolz/functoolz.c:23176:19: error: implicit declaration of function '_PyGen_Send' is invalid in C99 [-Werror,-Wimplicit-function-declaration]
error: command '/usr/bin/clang' failed with exit code 1
Error installing eth-brownie.
I tried to use the command "pip install eth-brownie" but my terminal says "pip command not found."
I received the same error, and was finally able to resolve after running the following commands:
Using Homebrew:
brew install recordclass
brew install cython
xcrun codesign --sign - "/Users/jon/Library/Python/3.8/lib/python/site-packages/regex/_regex.cpython-38-darwin.so"
pip3 install cytoolz
pip3 install pybind11
M1 Mac Chips has issues. There are issues at 2 fronts. (a) cytoolz, (b) regex==2021.10.8.
(a) cytoolz is resolved by doing pip install cytoolz and not pipx
(b) regex issue is a big one. The issue is with the version. Packaging bug causes an x86_64 regex to be installed on an Apple Silicon (M1) device (https://githubmemory.com/#dragos-vlad). To fix this: Pinning regex to 2021.9.30 should work for the time being. However for that you will have to change the requirements in the brownie git that you will use for installing.
For anyone using Windows 10 I had the same issue, just had to run:
pip install Cython
then
pip install eth-brownie
For whatever reason I was finally able to install with pip but not with pipx.
I have this problem with python 3.10. Try pyenv and use python 3.9.1 and it works.
What worked for me in Python 3.10 was installing cython and cytoolz before brownie.
Enter these three commands:
python3 -m pip install --user cython
python3 -m pip install --user cytoolz
python3 -m pip install --user eth-brownie
I had the same problem, Use pip rather than pipx.
command: pip install eth-brownie
For anyone using Python 3.10 on windows, simple run
pip install eth-brownie
It worked for me when I used pip3 install eth-brownie instead of pipx

When trying to install arviz I get the following error msg: "Error: python setup.py egg_info" failed with error code 1

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).

Resources