I want to download librosa in raspberry3 (python3.7.3)
when I tried to install llvmlite, this error happens.
please help me. thank u.
pi#raspberrypi:~ $ sudo pip3 install llvmlite
Building wheel for llvmlite (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
running bdist_wheel
/usr/bin/python3 /tmp/pip-install-0wqpwf39/llvmlite_1031f7d563fb4394ac842e0554709d18/ffi/build.py
LLVM version... 7.0.1
Traceback (most recent call last):
File "/tmp/pip-install-0wqpwf39/llvmlite_1031f7d563fb4394ac842e0554709d18/ffi/build.py", line 220, in <module>
main()
File "/tmp/pip-install-0wqpwf39/llvmlite_1031f7d563fb4394ac842e0554709d18/ffi/build.py", line 210, in main
main_posix('linux', '.so')
File "/tmp/pip-install-0wqpwf39/llvmlite_1031f7d563fb4394ac842e0554709d18/ffi/build.py", line 172, in main_posix
raise RuntimeError(msg)
RuntimeError: Building llvmlite requires LLVM 11.x.x, got '7.0.1'. Be sure to set LLVM_CONFIG to the right executable path.
Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite.
error: command '/usr/bin/python3' failed with exit status 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for llvmlite
Running setup.py clean for llvmlite
Failed to build llvmlite
Installing collected packages: llvmlite
Running setup.py install for llvmlite ... error
error: subprocess-exited-with-error
× Running setup.py install for llvmlite did not run successfully.
│ exit code: 1
╰─> [18 lines of output]
running install
running build
got version from file /tmp/pip-install-0wqpwf39/llvmlite_1031f7d563fb4394ac842e0554709d18/llvmlite/_version.py {'version': '0.38.1', 'full': '650c36d5a79e3825d26fb44f4abd853729a9b959'}
running build_ext
/usr/bin/python3 /tmp/pip-install-0wqpwf39/llvmlite_1031f7d563fb4394ac842e0554709d18/ffi/build.py
LLVM version... 7.0.1
Traceback (most recent call last):
File "/tmp/pip-install-0wqpwf39/llvmlite_1031f7d563fb4394ac842e0554709d18/ffi/build.py", line 220, in <module>
main()
File "/tmp/pip-install-0wqpwf39/llvmlite_1031f7d563fb4394ac842e0554709d18/ffi/build.py", line 210, in main
main_posix('linux', '.so')
File "/tmp/pip-install-0wqpwf39/llvmlite_1031f7d563fb4394ac842e0554709d18/ffi/build.py", line 172, in main_posix
raise RuntimeError(msg)
RuntimeError: Building llvmlite requires LLVM 11.x.x, got '7.0.1'. Be sure to set LLVM_CONFIG to the right executable path.
Read the documentation at http://llvmlite.pydata.org/ for more information about building llvmlite.
error: command '/usr/bin/python3' failed with exit status 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.
╰─> llvmlite
Related
I am trying hard to install PyQt5 in my Jetson nano. However, there is one thing always annoys me.
here's the feedback message.
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for sip
Failed to build sip
ERROR: Could not build wheels for sip, which is required to install pyproject.toml-based projects
[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.
I've tried sudo pip3 install pyqt5 and it gave me
compilation terminated.
error: command '/usr/bin/aarch64-linux-gnu-gcc' 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 sip
Failed to build sip
ERROR: Could not build wheels for sip, which is required to install pyproject.toml-based projects
[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.
I also tried sudo apt-get install python3-pyqt5. It worked but when I imported PyQt5 by from pyqtgraph.Qt import QtCore, QtGui or from PyQt5.QtCore import QObject, pyqtSignal, it gave me
Traceback (most recent call last):
File "/home/llw/Desktop/project/ture file/save_pointcloud.py", line 16, in <module>
from pyqtgraph.Qt import QtCore, QtGui
File "/usr/local/lib/python3.7/dist-packages/pyqtgraph/__init__.py", line 17, in <module>
from .colors import palette
File "/usr/local/lib/python3.7/dist-packages/pyqtgraph/colors/palette.py", line 1, in <module>
from ..Qt import QtGui
File "/usr/local/lib/python3.7/dist-packages/pyqtgraph/Qt/__init__.py", line 155, in <module>
import PyQt5.QtCore
ModuleNotFoundError: No module named 'PyQt5.QtCore
How do I fix this problem? Any suggestions or ideas could be a help.
Thank you.
pip install pytorch
Collecting pytorch
Using cached pytorch-1.0.2.tar.gz (689 bytes)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pytorch
Building wheel for pytorch (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\isamu\AppData\Local\Temp\pip-install-ib00i94p\pytorch_f353fda7bc1a41bdabf99f644cf66bcb\setup.py", line 15, in
raise Exception(message)
Exception: You tried to install "pytorch". The package named for PyTorch is "torch"
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pytorch
Running setup.py clean for pytorch
Failed to build pytorch
Installing collected packages: pytorch
Running setup.py install for pytorch ... error
error: subprocess-exited-with-error
× Running setup.py install for pytorch did not run successfully.
│ exit code: 1
╰─> [6 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "C:\Users\isamu\AppData\Local\Temp\pip-install-ib00i94p\pytorch_f353fda7bc1a41bdabf99f644cf66bcb\setup.py", line 11, in
raise Exception(message)
Exception: You tried to install "pytorch". The package named for PyTorch is "torch"
[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.
╰─> pytorch
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
tried:
pip install torch
pip3 install efficiencynet_pytorch
pip install pytorch
but didn't help
My python version is 3.7.15
I am setting up a virtualenv (python3 -m venv env && source env/bin/activate) and trying to install pandas==1.3.3 but I get an error:
Collecting pandas==1.3.3
Using cached pandas-1.3.3.tar.gz (4.7 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [17 lines of output]
Traceback (most recent call last):
File "/Users/user/env/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/Users/user/env/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Users/user/env/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 130, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/yq/l3rq2lw55t923sygld_4m2rm0000gn/T/pip-build-env-nre30lmt/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 338, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=['wheel'])
File "/private/var/folders/yq/l3rq2lw55t923sygld_4m2rm0000gn/T/pip-build-env-nre30lmt/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 320, in _get_build_requires
self.run_setup()
File "/private/var/folders/yq/l3rq2lw55t923sygld_4m2rm0000gn/T/pip-build-env-nre30lmt/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 484, in run_setup
self).run_setup(setup_script=setup_script)
File "/private/var/folders/yq/l3rq2lw55t923sygld_4m2rm0000gn/T/pip-build-env-nre30lmt/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 335, in run_setup
exec(code, locals())
File "<string>", line 18, in <module>
ModuleNotFoundError: No module named 'numpy'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel 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.
WARNING: You are using pip version 22.0.4; however, version 22.3.1 is available.
You should consider upgrading via the '/Users/user/env/bin/python -m pip install --upgrade pip' command.
Do you have any ideas, what is wrong? I have tried to update pip version pip install -U pip but the result was the same
I get the following error in my virtualenv when installing; snowflake-connector-python
% pip3 install snowflake-connector-python
Collecting snowflake-connector-python
Downloading snowflake-connector-python-2.9.0.tar.gz (394 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 394.3/394.3 kB 3.9 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error
...
Building wheels for collected packages: pyarrow
Building wheel for pyarrow (pyproject.toml): started
Building wheel for pyarrow (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
...
Traceback (most recent call last):
File "/my_virtualenvs/tester/bin/cmake", line 5, in <module>
from cmake import cmake
ModuleNotFoundError: No module named 'cmake'
error: command '/my_virtualenvs/tester/bin/cmake' failed with exit code 1
cmake is installed in the directory noted in the error and is available via the PATH:
% ECHO $PATH
/my_virtualenvs/tester/bin/cmake:/my_virtualenvs/tester/bin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
I can import cmake in the Python shell and call it via the terminal:
% bin/cmake --version
cmake version 3.25.0
Environment:
MacOS 12.5 Monterey
Apple Silicon M1
How can I solve this error?
pip install --upgrade pip setuptools wheel then ran this with a version specified: pip install -U opencv-python==4.5.5.62
Iam getting following errors.. How to proceed ? Thank you in advance.
Processing e:\tensorflow\models\research
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [25 lines of output]
C:\ProgramData\Anaconda3\lib\site-packages\setuptools_importlib.py:23: UserWarning: importlib-metadata version is incompatible with setuptools.
This problem is likely to be solved by installing an updated version of importlib-metadata.
warnings.warn(msg) # Ensure a descriptive message is shown.
Traceback (most recent call last):
File "", line 36, in
File "", line 14, in
File "C:\ProgramData\Anaconda3\lib\site-packages\setuptools_init_.py", line 18, in
from setuptools.dist import Distribution
File "C:\ProgramData\Anaconda3\lib\site-packages\setuptools\dist.py", line 35, in
from .importlib import metadata
File "C:\ProgramData\Anaconda3\lib\site-packages\setuptools_importlib.py", line 39, in
disable_importlib_metadata_finder(metadata)
File "C:\ProgramData\Anaconda3\lib\site-packages\setuptools_importlib.py", line 12, in disable_importlib_metadata_finder
import importlib_metadata
File "C:\ProgramData\Anaconda3\lib\site-packages\importlib_metadata_init.py", line 466, in
version = version(name)
File "C:\ProgramData\Anaconda3\lib\site-packages\importlib_metadata_init_.py", line 433, in version
return distribution(package).version
File "C:\ProgramData\Anaconda3\lib\site-packages\importlib_metadata_init_.py", line 406, in distribution
return Distribution.from_name(package)
File "C:\ProgramData\Anaconda3\lib\site-packages\importlib_metadata_init_.py", line 175, in from_name
dists = resolver(name)
File "C:\ProgramData\Anaconda3\lib\site-packages\setuptools_vendor\importlib_metadata_init_.py", line 886, in find_distributions
found = self._search_paths(context.name, context.path)
AttributeError: 'str' object has no attribute 'name'
[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.
This versions and commands solved the issue.
pip install setuptools==60.8.2
pip install -U opencv-python==4.5.5.62
python -m pip install --user --upgrade pip
python -m pip install