Even after installing sudo pip3 install wheel, I'm getting this error while installing rust and other packages. Why is this happening?
Related
pip install "kivy[base]" kivy_examples:
Collecting kivy[base]
Using cached Kivy-2.1.0.tar.gz (23.8 MB)
Installing build dependencies ... error
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [10 lines of output]
Collecting setuptools
Using cached setuptools-65.6.3-py3-none-any.whl (1.2 MB)
Collecting wheel
Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Collecting cython!=0.27,!=0.27.2,<=0.29.28,>=0.24
Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB)
Collecting kivy_deps.gstreamer_dev~=0.3.3
Using cached kivy_deps.gstreamer_dev-0.3.3-cp311-cp311-win_amd64.whl (3.9 MB)
ERROR: Could not find a version that satisfies the requirement kivy_deps.sdl2_dev~=0.4.5 (from versions: 0.5.1)
ERROR: No matching distribution found for kivy_deps.sdl2_dev~=0.4.5
[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.
note: This error originates from a subprocess, and is likely not a problem with pip.
how to fix? if you could help me. I am receiving this error is it my python verson? or the kivy version what could it be.
I tried using these verions:
python -m pip install kivy --pre --no-deps --index-url https://kivy.org/downloads/simple/
python -m pip install "kivy[base]" --pre --extra-index-url https://kivy.org/downloads/simple/
but they dont work properly, has a lot of bugs and malfunctions
There is no wheel for Kivy and Python 3.11 yet.
You have to build Kivy from source. You can do that using the following commands. I am doing it in a virtual environment to keep it separate from the main system.
python3.11 -m virtualenv Kivy_Py3.11
cd Kivy_Py3.11
source bin/activate
git clone https://github.com/kivy/kivy.git
cd Kivy_py3.11
python -m pip install -e ".[base]"
python -m pip install kivymd
pip freeze
Kivy will now be installed and the 'pip freeze' should show: (version number will probably be different)
certifi==2022.12.7
charset-normalizer==2.1.1
docutils==0.19
idna==3.4
-e git+https://github.com/kivy/kivy.git#a7c66880270a93821e1f8ecd613409f008fd2ce8#egg=Kivy
Kivy-Garden==0.1.5
KivyMD==1.1.1
Pillow==9.3.0
Pygments==2.13.0
requests==2.28.1
urllib3==1.26.13
If you want to use the nightly build of Kivy that is more compatiable with Python 3.11 then you can just run these command.
python3.11 -m pip install kivy --pre --no-deps --index-url https://kivy.org/downloads/simple/
python3.11 -m pip install "kivy[base]" --pre --extra-index-url https://kivy.org/downloads/simple/
python3.11 -m pip install https://github.com/kivymd/KivyMD/archive/master.zip
I had the same issue and it was rectified by downgrading to 3.10 and it works.
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.
╰─> python_bcrypt
I can't install the python_bcrypt in visual studio code anyone know how?
This is could be an issue of wheel package. Some projects don't have wheel package in their source. I tried doing the same on my machine. It's running Python v 3.10.7 and pip v 22.3.1. I faced some warnings but no errors during the installation.
pip install python_bcrypt
Collecting python_bcrypt
Downloading python-bcrypt-0.3.2.tar.gz (19 kB)
Preparing metadata (setup.py) ... done
Installing collected packages: python_bcrypt
DEPRECATION: python_bcrypt 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 python_bcrypt ... done
Successfully installed python_bcrypt-0.3.2
I would say try upgrading your pip, setuptools, wheels
python.exe -m pip install --upgrade pip
pip3 install wheel setuptools pip --upgrade
os: centos7.6
python 3.8
occur error:
Collecting airflow
Using cached airflow-0.6.tar.gz (1.2 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
maybe this help
python -m pip uninstall setuptools
pip install setuptools
pip install airflow
This is simply saying the build tool setup.py fails to build from source.
I am not so technical in the aspect of building from source, so I can't tell you exactly what to do with your .tar.gz file to make it all right.
If you have pip installed on the machine (which I assume you do), then simply type:
pip install apache-airflow
The long version:
python3 -m pip install apache-airflow
If you intend to use celery together with Apache Airflow, I suggest:
python3 -m pip install apache-airflow[celery] for full installation.
Refer to the documentation of Apache Airflow for more info.
I've been trying to install jupyter for the past 2 hours and I keep getting this error:
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pywinpty
Failed to build pywinpty
ERROR: Could not build wheels for pywinpty, which is required to install pyproject.toml-based projects
I tried installing pywinpty by itself (pip intstall pywinpty in cmd) and it gives the same wheels error.
I used this guide from jupyter to attempt installation: https://docs.jupyter.org/en/latest/install/notebook-classic.html
Just try using
python -m pip install --upgrade pip
If that doesn't work, Try this as Admin in cmd
pip uninstall pip
and then,
python -m ensurepip
https://pypi.org/project/python-shout/#files
Well, I tried:
python3.6 setup.py build
But I got this message:
Using PKG_CONFIG_PATH=/usr/lib/pkgconfig
pkg-config and shout-config unavailable, build terminated
main# pip3 install python-shout
Collecting python-shout
Using cached https://files.pythonhosted.org/packages/4a/d9/a845873d3fbf57cfecfa88e20eae77ef93f1a6bc68d9e092c8e020d96b88/python-shout-0.2.6.tar.gz
Complete output from command python setup.py egg_info:
Using PKG_CONFIG_PATH=/usr/lib/pkgconfig
pkg-config and shout-config unavailable, build terminated
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-oqd340si/python-shout/
You are using pip version 18.1, however version 20.2b1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
Same error from: https://icecast.org/download/
Same error from: https://pypi.org/project/python-shout3/#files
Any help would be useful.