ipymbl install from pip - python-3.x

I try to install the library ipympl using pip:
pip3 install ipympl
I am on a windows computer with python 3.8.
I get this Error:
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
[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 Install https://rustup.rs/
and give path but still not working I think that I do something wrong.

Related

python setup.py bdist_wheel did not run successfully on MAC M1

I want to pip install robotframework-puppeteerlibrary on mac m1.But it have some error.
after install I try to solve by pip install --upgrade pip pip install --use-pep517 greenlet the result is the same before. And then I brew install greenlet again. It doesn't working.I don't how to solve this problem.
Expected result : I want to use puppeteer on mac with robotframework.
Requirement already satisfied: zipp>=0.5 in /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages (from importlib-metadata>=1.4->pyppeteer==1.0.2->robotframework-puppeteerlibrary) (3.12.1)
Building wheels for collected packages: greenlet
Building wheel for greenlet (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [243 lines of output]
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors 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 greenlet
Running setup.py clean for greenlet
Failed to build greenlet
Installing collected packages: pyee, greenlet, playwright, robotframework-puppeteerlibrary
Attempting uninstall: pyee
Found existing installation: pyee 9.0.4
Uninstalling pyee-9.0.4:
Successfully uninstalled pyee-9.0.4
Attempting uninstall: greenlet
Found existing installation: greenlet 2.0.2
Uninstalling greenlet-2.0.2:
Successfully uninstalled greenlet-2.0.2
Running setup.py install for greenlet ... error
error: subprocess-exited-with-error
× Running setup.py install for greenlet did not run successfully.
│ exit code: 1
╰─> [245 lines of output]
running install
/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.macosx-10.9-universal2-cpython-311
creating build/lib.macosx-10.9-universal2-cpython-311/greenlet
copying src/greenlet/__init__.py -> build/lib.macosx-10.9-universal2-cpython-311/greenlet
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors 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.
Rolling back uninstall of greenlet
Moving to /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/greenlet/
from /Library/Frameworks/Python.framework/Versions/3.11/include/python3.11/~reenlet
Moving to /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/greenlet-2.0.2.dist-info/
from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/~reenlet-2.0.2.dist-info
Moving to /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/greenlet/
from /Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/~reenlet
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> greenlet
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I want to pip install package and use with robotframework.

pip install websocket - Error: subprocess-exited-with-error. Cant execute `setup.py` since setuptools is not available in the build environment

pip --version pip 23.0 from C:\Users\sebas\AppData\Local\Programs\Python\Python310\lib\site-packages\pip (python 3.10)
python --version 3.10.4
$ pip install websocket
Collecting websocket
Using cached websocket-0.2.1.tar.gz (195 kB)
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]
ERROR: Can not execute `setup.py` since setuptools is not available in the build environment.
[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.
Any idea what's going on here? I have never seen such an error before.

locustio installed falid error: legacy-install-failure error: subprocess-exited-with-error

how to install locustio
study_locust /usr/local/bin/python3.8 -m pip install locustio
Looking in indexes: http://pypi.byted.org/simple/pypi/+simple
Collecting locustio
Downloading http://pypi.byted.org/packages/pypi/locustio/locustio-0.999.tar.gz (267 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 267.6/267.6 kB 741.2 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Installing collected packages: locustio
DEPRECATION: locustio is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for locustio ... error
error: subprocess-exited-with-error
× Running setup.py install for locustio did not run successfully.
│ exit code: 1
╰─\> \[4 lines of output\]
running install
\*\*\*\* Locust package has moved from 'locustio' to 'locust'. Please update your reference (or pin your version to 0.14.6 if you dont want to update to 1.0) \*\*\*\*
\[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.
╰─\> locustio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
➜ study_locust
× Running setup.py install for locustio did not run successfully.
│ exit code: 1
╰─> [4 lines of output]
running install
\*\*\*\* Locust package has moved from 'locustio' to 'locust'. Please update your reference (or pin your version to 0.14.6 if you dont want to update to 1.0) \*\*\*\*
\[end of output\]
https://docs.locust.io/en/stable/installation.html
locustio is no longer the name of the package. As the error message and docs say, you need to install locust.
pip3 install locust

Error trying to install python pywinpty>=1.1.0 package

I try to install the python for aws glue connectivity,
so I installed pip install --upgrade jupyter boto3 aws-glue-sessions.
I'm getting errors in this particular package.
Collecting pywinpty>=1.1.0 Using cached pywinpty-2.0.5.tar.gz (23 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Preparing metadata (pyproject.toml) ... error error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [6 lines of output]
Cargo, the Rust package manager, is not installed or is not on PATH.
This package requires Rust and Cargo to compile extensions. Install it through
the system's package manager or via https://rustup.rs/
Checking for Rust toolchain....
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip. error: metadata-generation-failed
Found a solution online. Installing 64 bit Python resolved my issue. Check your installation with python -V -V, it should say 64 bit.

python postgresql module install on MAC OS is failing [duplicate]

This question already has answers here:
Can't install psycopg2-binary on macOS Monterey 12.3
(2 answers)
Closed 11 months ago.
i am trying to install psycopg2-binary module on my Mac OS. install is failing with below error message.
Any help to resolve this error?
pip install psycopg2-binary
Defaulting to user installation because normal site-packages is not writeable
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [23 lines of output]
running egg_info
creating /private/var/folders/1s/xllnfc3n1j988pnws9g93tfm77pffn/T/pip-pip-egg-info-7b1acytt/psycopg2_binary.egg-info
writing /private/var/folders/1s/xllnfc3n1j988pnws9g93tfm77pffn/T/pip-pip-egg-info-7b1acytt/psycopg2_binary.egg-info/PKG-INFO
writing dependency_links to /private/var/folders/1s/xllnfc3n1j988pnws9g93tfm77pffn/T/pip-pip-egg-info-7b1acytt/psycopg2_binary.egg-info/dependency_links.txt
writing top-level names to /private/var/folders/1s/xllnfc3n1j988pnws9g93tfm77pffn/T/pip-pip-egg-info-7b1acytt/psycopg2_binary.egg-info/top_level.txt
writing manifest file '/private/var/folders/1s/xllnfc3n1j988pnws9g93tfm77pffn/T/pip-pip-egg-info-7b1acytt/psycopg2_binary.egg-info/SOURCES.txt'
Error: pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
[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.
Thanks
SR
I think the issue may be related to your question, and it seems that a is also provided there. https://github.com/psycopg/psycopg2/issues/1286
You may also try to build psycopg2 from source following the instruction. https://www.psycopg.org/docs/install.html#prerequisites

Resources