I have a machine with Centos 6.10, python3.6, pip 21.3.1.
Link to bit library - https://pypi.org/project/bit/
All requirements are observed, other libraries I had installed without troubles
Try to install bit library pip3.6 install bit and get error.
Here is my error log.
pip3.6 install bit==0.6.0
Collecting bit==0.6.0
Downloading bit-0.6.0-py3-none-any.whl (64 kB)
|████████████████████████████████| 64 kB 4.8 MB/s
Collecting coincurve>=4.3.0
Using cached coincurve-16.0.0.tar.gz (219 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: requests in /usr/local/lib/python3.6/site-package s (from bit==0.6.0) (2.11.1)
Requirement already satisfied: cffi>=1.3.0 in /usr/local/lib/python3.6/site-pack ages (from coincurve>=4.3.0->bit==0.6.0) (1.15.0)
Requirement already satisfied: asn1crypto in /usr/local/lib/python3.6/site-packa ges (from coincurve>=4.3.0->bit==0.6.0) (1.5.1)
Requirement already satisfied: pycparser in /usr/local/lib/python3.6/site-packag es (from cffi>=1.3.0->coincurve>=4.3.0->bit==0.6.0) (2.21)
Building wheels for collected packages: coincurve
Building wheel for coincurve (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python3.6 /usr/local/lib/python3.6/site-packages/pip/ _vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp8428zjtf
cwd: /tmp/pip-install-d7d9rq4f/coincurve_73e1ff44b1ce4f1697e0b1ab2cfdb003
Complete output (66 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.6
creating build/lib.linux-x86_64-3.6/coincurve
copying coincurve/types.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/context.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/_windows_libsecp256k1.py -> build/lib.linux-x86_64-3.6/coinc urve
copying coincurve/ecdsa.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/flags.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/utils.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/keys.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/__init__.py -> build/lib.linux-x86_64-3.6/coincurve
copying coincurve/py.typed -> build/lib.linux-x86_64-3.6/coincurve
running build_clib
configure.ac:407: error: AC_PROG_CC cannot be called after AM_PROG_CC_C_O
build-aux/m4/ax_prog_cc_for_build.m4:38: AX_PROG_CC_FOR_BUILD is expanded from ...
configure.ac:407: the top level
autom4te: /usr/bin/m4 failed with exit status: 1
aclocal: autom4te failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_ in_process.py", line 363, in <module>
main()
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_ in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_ in_process.py", line 262, in build_wheel
metadata_directory)
File "/tmp/pip-build-env-62lgckid/overlay/lib/python3.6/site-packages/setupt ools/build_meta.py", line 231, in build_wheel
wheel_directory, config_settings)
File "/tmp/pip-build-env-62lgckid/overlay/lib/python3.6/site-packages/setupt ools/build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-62lgckid/overlay/lib/python3.6/site-packages/setupt ools/build_meta.py", line 268, in run_setup
self).run_setup(setup_script=setup_script)
File "/tmp/pip-build-env-62lgckid/overlay/lib/python3.6/site-packages/setupt ools/build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 312, in <module>
**setup_kwargs
File "/tmp/pip-build-env-62lgckid/overlay/lib/python3.6/site-packages/setupt ools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 97, in run
_bdist_wheel.run(self)
File "/tmp/pip-build-env-62lgckid/overlay/lib/python3.6/site-packages/wheel/ bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 154, in run
subprocess.check_call([autogen], cwd=absolute('libsecp256k1'))
File "/usr/local/lib/python3.6/subprocess.py", line 291, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/tmp/pip-install-d7d9rq4f/coincurve_ 73e1ff44b1ce4f1697e0b1ab2cfdb003/libsecp256k1/autogen.sh']' returned non-zero ex it status 1.
----------------------------------------
ERROR: Failed building wheel for coincurve
Failed to build coincurve
ERROR: Could not build wheels for coincurve, which is required to install pyproj ect.toml-based projects
What can I do?
Thanks in advance.
Related
I'm trying to run pip install -r requirements-full.txt on Ubuntu, but I'm getting this ERROR: Could not build wheels for coincurve, which is required to install pyproject.toml-based projects. Here is whole thing:
pip install -r requirements.txt
Defaulting to user installation because normal site-packages is not writeable
Collecting coincurve~=15.0.1
Using cached coincurve-15.0.1.tar.gz (223 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting green~=3.3.0
Using cached green-3.3.0-py3-none-any.whl
Collecting protobuf~=3.19.1
Using cached protobuf-3.19.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.1 MB)
Collecting pycryptodome~=3.12.0
Using cached pycryptodome-3.12.0-cp35-abi3-manylinux2010_x86_64.whl (2.0 MB)
Requirement already satisfied: asn1crypto in /usr/lib/python3/dist-packages (from coincurve~=15.0.1->-r requirements.txt (line 1)) (1.4.0)
Requirement already satisfied: cffi>=1.3.0 in /usr/lib/python3/dist-packages (from coincurve~=15.0.1->-r requirements.txt (line 1)) (1.15.0)
Requirement already satisfied: unidecode in /usr/lib/python3/dist-packages (from green~=3.3.0->-r requirements.txt (line 2)) (1.3.4)
Collecting coverage
Using cached coverage-6.4.1-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (212 kB)
Requirement already satisfied: lxml in /usr/lib/python3/dist-packages (from green~=3.3.0->-r requirements.txt (line 2)) (4.8.0)
Requirement already satisfied: colorama in /usr/lib/python3/dist-packages (from green~=3.3.0->-r requirements.txt (line 2)) (0.4.4)
Building wheels for collected packages: coincurve
Building wheel for coincurve (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for coincurve (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [63 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.10
creating build/lib.linux-x86_64-3.10/coincurve
copying coincurve/utils.py -> build/lib.linux-x86_64-3.10/coincurve
copying coincurve/_windows_libsecp256k1.py -> build/lib.linux-x86_64-3.10/coincurve
copying coincurve/keys.py -> build/lib.linux-x86_64-3.10/coincurve
copying coincurve/flags.py -> build/lib.linux-x86_64-3.10/coincurve
copying coincurve/ecdsa.py -> build/lib.linux-x86_64-3.10/coincurve
copying coincurve/__init__.py -> build/lib.linux-x86_64-3.10/coincurve
copying coincurve/types.py -> build/lib.linux-x86_64-3.10/coincurve
copying coincurve/context.py -> build/lib.linux-x86_64-3.10/coincurve
copying coincurve/py.typed -> build/lib.linux-x86_64-3.10/coincurve
running build_clib
/tmp/pip-install-dhco0a3q/coincurve_c753062167664507861b409485b2b53c/libsecp256k1/autogen.sh: 3: autoreconf: not found
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in
main()
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/lib/python3/dist-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 230, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 260, in
setup(
File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "setup.py", line 95, in run
_bdist_wheel.run(self)
File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/usr/lib/python3/dist-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3/dist-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "setup.py", line 152, in run
subprocess.check_call([autogen], cwd=absolute('libsecp256k1'))
File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/tmp/pip-install-dhco0a3q/coincurve_c753062167664507861b409485b2b53c/libsecp256k1/autogen.sh']' returned non-zero exit status 127.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for coincurve
Failed to build coincurve
ERROR: Could not build wheels for coincurve, which is required to install pyproject.toml-based projects
I tried this too: ERROR: Could not build wheels for coincurve, which is required to install pyproject.toml-based projects, and pip install --upgrade pip
Nothing worked, please help, thank you
if ur having the same problem, Install the requirements individually worked for me, heres the list:
coincurve~=15.0.1
green~=3.3.0
protobuf~=3.19.1
pycryptodome~=3.12.0
I try to install a python package. It's fitsio. I work on Jupyter Notebook but I am a beginner.
I try pip install fitsio but I have an error like you see :
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools>pip install fitsio
Collecting fitsio
Using cached fitsio-1.1.7.tar.gz (5.0 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: numpy in c:\users\utilisateur\appdata\local\packages\pythonsoftwarefoundation.python.3.7_qbz5n2kfra8p0\localcache\local-packages\python37\site-packages (from fitsio) (1.21.6)
Using legacy 'setup.py install' for fitsio, since package 'wheel' is not installed.
Installing collected packages: fitsio
Running setup.py install for fitsio ... error
error: subprocess-exited-with-error
× Running setup.py install for fitsio did not run successfully.
│ exit code: 1
╰─> [64 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\fitsio
copying fitsio\fitslib.py -> build\lib.win-amd64-3.7\fitsio
copying fitsio\header.py -> build\lib.win-amd64-3.7\fitsio
copying fitsio\test.py -> build\lib.win-amd64-3.7\fitsio
copying fitsio\util.py -> build\lib.win-amd64-3.7\fitsio
copying fitsio\__init__.py -> build\lib.win-amd64-3.7\fitsio
creating build\lib.win-amd64-3.7\fitsio\hdu
copying fitsio\hdu\base.py -> build\lib.win-amd64-3.7\fitsio\hdu
copying fitsio\hdu\image.py -> build\lib.win-amd64-3.7\fitsio\hdu
copying fitsio\hdu\table.py -> build\lib.win-amd64-3.7\fitsio\hdu
copying fitsio\hdu\__init__.py -> build\lib.win-amd64-3.7\fitsio\hdu
running egg_info
writing fitsio.egg-info\PKG-INFO
writing dependency_links to fitsio.egg-info\dependency_links.txt
writing requirements to fitsio.egg-info\requires.txt
writing top-level names to fitsio.egg-info\top_level.txt
reading manifest file 'fitsio.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'fitsio.egg-info\SOURCES.txt'
copying fitsio\fitsio_pywrap.c -> build\lib.win-amd64-3.7\fitsio
creating build\lib.win-amd64-3.7\fitsio\test_images
copying fitsio\test_images\test_gzip_compressed_image.fits.fz -> build\lib.win-amd64-3.7\fitsio\test_images
running build_ext
Traceback (most recent call last):
File "<string>", line 36, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\UTILIS~1\AppData\Local\Temp\pip-install-pugpqzau\fitsio_302dc86b80ce48538f11d014b602f5f7\setup.py", line 284, in <module>
cmdclass={"build_ext": build_ext_subclass}
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 966, in run_commands
self.run_command(cmd)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\command\install.py", line 61, in run
return orig.install.run(self)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\command\install.py", line 545, in run
self.run_command('build')
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\dist.py", line 985, in run_command
cmd_obj.run()
File "C:\Users\UTILIS~1\AppData\Local\Temp\pip-install-pugpqzau\fitsio_302dc86b80ce48538f11d014b602f5f7\setup.py", line 72, in run
build_ext.run(self)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\site-packages\setuptools\command\build_ext.py", line 87, in run
_build_ext.run(self)
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2544.0_x64__qbz5n2kfra8p0\lib\distutils\command\build_ext.py", line 340, in run
self.build_extensions()
File "C:\Users\UTILIS~1\AppData\Local\Temp\pip-install-pugpqzau\fitsio_302dc86b80ce48538f11d014b602f5f7\setup.py", line 80, in build_extensions
CCold = self.compiler.compiler
AttributeError: 'MSVCCompiler' object has no attribute 'compiler'
[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.
╰─> fitsio
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
To resolve my problem I try to update python -m pip install –upgrade pip & pip install –upgrade wheel & pip install –upgrade setuptools.
Moreover I download Microsoft c++ build tools.
I install successfully cfitsio with Anaconda but when I write import cfitsio Jupyter notebook does not recognize the package.
Thanks for reading.
Check which kernel you have picked to ensure that your import statement corresponds to the respective Python environment and package installed via pip.
See VSCode issue with Python versions and environments from Jupyter Notebooks and https://github.com/microsoft/vscode-jupyter/issues/7373 for additional information.
was trying to install yolox
pip install -r requirements.txt and got this
Using legacy 'setup.py install' for onnx-simplifier, since package 'wheel' is not installed.
Building wheels for collected packages: onnx, pycocotools
Building wheel for onnx (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for onnx (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [82 lines of output]
C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\dist.py:757: UserWarning: Usage of dash-separated 'license-file' will not be supported in future versions. Please use the underscore name 'license_file' instead
warnings.warn(
running bdist_wheel
running build
running build_py
running create_version
running cmake_build
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:17 (project):
Generator
NMake Makefiles
does not support platform specification, but platform
x64
was specified.
CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
-- Configuring incomplete, errors occurred!
See also "C:/Users/ASUS/AppData/Local/Temp/pip-install-9m548hbh/onnx_ad97fc2a0af84a5fa92a29cfbc51c296/.setuptools-cmake-build/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\asus\appdata\local\programs\python\python39\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\build_meta.py", line 244, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\build_meta.py", line 229, in _build_with_temp_dir
self.run_setup()
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\build_meta.py", line 281, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\build_meta.py", line 174, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 321, in <module>
setuptools.setup(
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\dist.py", line 1214, in run_command
super().run_command(command)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\dist.py", line 1214, in run_command
super().run_command(command)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\dist.py", line 1214, in run_command
super().run_command(command)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "setup.py", line 217, in run
self.run_command('cmake_build')
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\dist.py", line 1214, in run_command
super().run_command(command)
File "C:\Users\ASUS\AppData\Local\Temp\pip-build-env-du9u4xrx\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "setup.py", line 203, in run
subprocess.check_call(cmake_args)
File "c:\users\asus\appdata\local\programs\python\python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\Users\\ASUS\\anaconda3\\envs\\myenv\\Library\\bin\\cmake.exe', '-DPYTHON_INCLUDE_DIR=c:\\users\\asus\\appdata\\local\\programs\\python\\python39\\include', '-DPYTHON_EXECUTABLE=c:\\users\\asus\\appdata\\local\\programs\\python\\python39\\python.exe', '-DBUILD_ONNX_PYTHON=ON', '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', '-DONNX_NAMESPACE=onnx', '-DPY_EXT_SUFFIX=.cp39-win_amd64.pyd', '-DCMAKE_BUILD_TYPE=Release', '-DPY_VERSION=3.9', '-DONNX_USE_MSVC_STATIC_RUNTIME=ON', '-A', 'x64', '-T', 'host=x64', '-DONNX_ML=1', 'C:\\Users\\ASUS\\AppData\\Local\\Temp\\pip-install-9m548hbh\\onnx_ad97fc2a0af84a5fa92a29cfbc51c296']' returned non-zero 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 onnx
Building wheel for pycocotools (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pycocotools (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [14 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\pycocotools
copying pycocotools\coco.py -> build\lib.win-amd64-3.9\pycocotools
copying pycocotools\cocoeval.py -> build\lib.win-amd64-3.9\pycocotools
copying pycocotools\mask.py -> build\lib.win-amd64-3.9\pycocotools
copying pycocotools_init_.py -> build\lib.win-amd64-3.9\pycocotools
running build_ext
skipping 'pycocotools_mask.c' Cython extension (up-to-date)
building 'pycocotools._mask' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pycocotools
Failed to build onnx pycocotools
ERROR: Could not build wheels for onnx, pycocotools, which is required to install pyproject.toml-based projects
(myenv) C:\Users\ASUS\Desktop\YOLOX-main>
since package 'wheel' is not installed
install wheel:
pip3 install wheel
If you are using Conda environment you can run this commmand
conda install -c conda-forge pycocotools
Error while installing bit using Termux on a Samsung Galaxy s10 Android 12 which is not rooted
~ $ pip3 install bit Collecting bit
Using cached bit-0.8.0-py3-none-any.whl (68 kB)
Collecting requests Using cached requests-2.27.1-py2.py3-none-any.whl (63 kB) Collecting coincurve>=4.3.0
Using cached coincurve-17.0.0.tar.gz (2.5 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... done
Collecting asn1crypto
Using cached asn1crypto-1.5.0-py2.py3-none-any.whl (105 kB) Collecting cffi>=1.3.0
Using cached cffi-1.15.0-cp310-cp310-linux_aarch64.whlCollecting urllib3<1.27,>=1.21.1 Using cached urllib3-1.26.8-py2.py3-none-any.whl (138 kB)
Collecting certifi>=2017.4.17
Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting charset-normalizer~=2.0.0
Using cached charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
Collecting idna<4,>=2.5
Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Building wheels for collected packages: coincurve
Building wheel for coincurve (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for coincurve (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [64 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.10
creating build/lib.linux-aarch64-3.10/coincurve
copying coincurve/types.py -> build/lib.linux-aarch64-3.10/coincurve
copying coincurve/ecdsa.py -> build/lib.linux-aarch64-3.10/coincurve
copying coincurve/_windows_libsecp256k1.py -> build/lib.linux-aarch64-3.10/coincurve
copying coincurve/keys.py -> build/lib.linux-aarch64-3.10/coincurve
copying coincurve/context.py -> build/lib.linux-aarch64-3.10/coincurve
copying coincurve/flags.py -> build/lib.linux-aarch64-3.10/coincurve
copying coincurve/__init__.py -> build/lib.linux-aarch64-3.10/coincurve
copying coincurve/utils.py -> build/lib.linux-aarch64-3.10/coincurve
copying coincurve/py.typed -> build/lib.linux-aarch64-3.10/coincurve
running build_clib
Can't exec "aclocal": No such file or directory at /data/data/com.termux/files/usr/share/autoconf/Autom4te/FileUtils.pm line 274.
autoreconf: error: aclocal failed with exit status: 1
Traceback (most recent call last):
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/data/data/com.termux/files/usr/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 244, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 229, in _build_with_temp_dir
self.run_setup()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 281, in run_setup
super(_BuildMetaLegacyBackend,
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 174, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 264, in <module>
setup(
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "setup.py", line 97, in run
_bdist_wheel.run(self)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/data/data/com.termux/files/usr/tmp/pip-build-env-idl32cqz/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "setup.py", line 154, in run
subprocess.check_call([autogen], cwd=absolute('libsecp256k1'))
File "/data/data/com.termux/files/usr/lib/python3.10/subprocess.py", line 369, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/data/data/com.termux/files/usr/tmp/pip-install-pgwmnz6f/coincurve_5ace6eabc71247daaa71de70d4272038/libsecp256k1/autogen.sh']' returned non-zero 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 coincurve
Failed to build coincurve
ERROR: Could not build wheels for coincurve, which is required to install pyproject.toml-based projects
I've already installed wheel but it's still not working and try some others things but did work neither (I don't remember sorry).
I'm using Python 3.10.2 and pip 22.0.4
Everything is normally up to date
Anyone know how can I solve this?
Update pip3 and install wheel. Then try installing coincurve individually.
pip3 install --upgrade pip3
pip3 install wheel
pip3 install coincurve
Try this:
Worked for me on a Xiaomi Poco with LineageOS 18.1 (Android 11).
One needs to install some dependendencies in order to build the coincurve module. Then use pip to install the coincurve module with --no-binary all option, which tells pip to compile the module's binaries itself instead of trying to download them, guaranteeing that the binaries will match your processor architecture (and perhaps operating system?).
pkg update
pkg install build-essential
pkg install binutils
pip install coincurve --no-binary all
This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed last year.
I hit an issue when I want to install ciso8601 with Windows Command Prompt, usig pip3.
I have Python 3.8.10 vesion installed, when I write pip3 install ciso8601 in the command prompt, I have this error message :
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ciso8601
Failed to build ciso8601
ERROR: Could not build wheels for ciso8601, which is required to install pyproject.toml-based projects
I initially encountered this error when I wanted to install ftx package.
Installing the wheelpackage didn't help.
The following code is the entire message I get when I install ciso8601 :
C:\Users\Hugo>pip3 install ciso8601
Collecting ciso8601
Using cached ciso8601-2.2.0.tar.gz (18 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: ciso8601
Building wheel for ciso8601 (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for ciso8601 (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [66 lines of output]
running bdist_wheel
running build
running build_py
package init file 'ciso8601\__init__.py' not found (or not a regular file)
running build_ext
building 'ciso8601' extension
Traceback (most recent call last):
File "c:\users\hugo\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "c:\users\hugo\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "c:\users\hugo\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pep517\in_process\_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\build_meta.py", line 229, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\build_meta.py", line 214, in _build_with_temp_dir
self.run_setup()
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\build_meta.py", line 266, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\build_meta.py", line 157, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 37, in <module>
setup(
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 327, in compile
self.initialize()
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\_distutils\_msvccompiler.py", line 224, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "C:\Users\Hugo\AppData\Local\Temp\pip-build-env-d8m37jb0\overlay\Lib\site-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for ciso8601
Failed to build ciso8601
ERROR: Could not build wheels for ciso8601, which is required to install pyproject.toml-based projects