Cannot install lightgbm==3.3.3 on Apple Silicon - python

Here the full log of pip3 install lightgbm==3.3.3.
me % pip3 install lightgbm==3.3.3
Collecting lightgbm==3.3.3
Using cached lightgbm-3.3.3.tar.gz (1.5 MB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: wheel in /opt/homebrew/lib/python3.10/site-packages (from lightgbm==3.3.3) (0.37.1)
Collecting numpy
Using cached numpy-1.23.5-cp310-cp310-macosx_11_0_arm64.whl (13.4 MB)
Collecting scipy
Using cached scipy-1.9.3-cp310-cp310-macosx_12_0_arm64.whl (28.5 MB)
Collecting scikit-learn!=0.22.0
Downloading scikit_learn-1.1.3-cp310-cp310-macosx_12_0_arm64.whl (7.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 7.7/7.7 MB 4.7 MB/s eta 0:00:00
Collecting threadpoolctl>=2.0.0
Downloading threadpoolctl-3.1.0-py3-none-any.whl (14 kB)
Collecting joblib>=1.0.0
Using cached joblib-1.2.0-py3-none-any.whl (297 kB)
Building wheels for collected packages: lightgbm
Building wheel for lightgbm (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [86 lines of output]
running bdist_wheel
/opt/homebrew/lib/python3.10/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
creating build/lib/lightgbm
copying lightgbm/callback.py -> build/lib/lightgbm
copying lightgbm/compat.py -> build/lib/lightgbm
copying lightgbm/plotting.py -> build/lib/lightgbm
copying lightgbm/__init__.py -> build/lib/lightgbm
copying lightgbm/engine.py -> build/lib/lightgbm
copying lightgbm/dask.py -> build/lib/lightgbm
copying lightgbm/basic.py -> build/lib/lightgbm
copying lightgbm/libpath.py -> build/lib/lightgbm
copying lightgbm/sklearn.py -> build/lib/lightgbm
running egg_info
writing lightgbm.egg-info/PKG-INFO
writing dependency_links to lightgbm.egg-info/dependency_links.txt
writing requirements to lightgbm.egg-info/requires.txt
writing top-level names to lightgbm.egg-info/top_level.txt
reading manifest file 'lightgbm.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'build'
warning: no files found matching '*.so' under directory 'lightgbm'
warning: no files found matching '*.so' under directory 'compile'
warning: no files found matching '*.dll' under directory 'compile/Release'
warning: no files found matching '*.dll' under directory 'compile/windows/x64/DLL'
warning: no previously-included files matching '*.py[co]' found anywhere in distribution
warning: no previously-included files found matching 'compile/external_libs/compute/.git'
adding license file 'LICENSE'
writing manifest file 'lightgbm.egg-info/SOURCES.txt'
copying lightgbm/VERSION.txt -> build/lib/lightgbm
installing to build/bdist.macosx-13-arm64/wheel
running install
INFO:LightGBM:Starting to compile the library.
INFO:LightGBM:Starting to compile with CMake.
Traceback (most recent call last):
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 95, in silent_call
subprocess.check_call(cmd, stderr=log, stdout=log)
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cmake'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 334, in <module>
setup(name='lightgbm',
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/opt/homebrew/lib/python3.10/site-packages/wheel/bdist_wheel.py", line 335, in run
self.run_command('install')
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 319, in run_command
self.distribution.run_command(command)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 248, in run
compile_cpp(use_mingw=self.mingw, use_gpu=self.gpu, use_cuda=self.cuda, use_mpi=self.mpi,
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 198, in compile_cpp
silent_call(cmake_cmd, raise_error=True, error_msg='Please install CMake and all required dependencies first')
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 99, in silent_call
raise Exception("\n".join((error_msg, LOG_NOTICE)))
Exception: Please install CMake and all required dependencies first
The full version of error log was saved into /Users/me/LightGBM_compilation.log
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for lightgbm
Running setup.py clean for lightgbm
Failed to build lightgbm
Installing collected packages: threadpoolctl, numpy, joblib, scipy, scikit-learn, lightgbm
Running setup.py install for lightgbm ... error
error: subprocess-exited-with-error
× Running setup.py install for lightgbm did not run successfully.
│ exit code: 1
╰─> [45 lines of output]
running install
/opt/homebrew/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
INFO:LightGBM:Starting to compile the library.
INFO:LightGBM:Starting to compile with CMake.
Traceback (most recent call last):
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 95, in silent_call
subprocess.check_call(cmd, stderr=log, stdout=log)
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 364, in check_call
retcode = call(*popenargs, **kwargs)
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 345, in call
with Popen(*popenargs, **kwargs) as p:
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 971, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/opt/homebrew/Cellar/python#3.10/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/subprocess.py", line 1847, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'cmake'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 334, in <module>
setup(name='lightgbm',
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 185, in setup
return run_commands(dist)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
dist.run_commands()
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/opt/homebrew/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 248, in run
compile_cpp(use_mingw=self.mingw, use_gpu=self.gpu, use_cuda=self.cuda, use_mpi=self.mpi,
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 198, in compile_cpp
silent_call(cmake_cmd, raise_error=True, error_msg='Please install CMake and all required dependencies first')
File "/private/var/folders/qf/7kpp7kws2bs9ljbxdl6vf9480000gn/T/pip-install-qdmnvrdo/lightgbm_7e71affc27c54e8fb3f78d9ef73bd942/setup.py", line 99, in silent_call
raise Exception("\n".join((error_msg, LOG_NOTICE)))
Exception: Please install CMake and all required dependencies first
The full version of error log was saved into /Users/me/LightGBM_compilation.log
[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.
╰─> lightgbm
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
There is a workaround for this?

When you run pip install lightgbm and see this message in logs:
Building wheels for collected packages: lightgbm
it means that there is not a pre-compiled binary (i.e. wheel) available matching your platform (operating system + architecture + Python version), and that LightGBM needs to be built from source.
lightgbm is a Python package wrapping lib_lightgbm, a C++ library with a C API. So "built from source" for lightgbm means compiling that C/C++ code, which for LightGBM requires:
C and C++ compilers
the CMake build system
an installation of OpenMP
Those components are the "CMake and all required dependencies" referred to in the error message.
On macOS, you should already have a C/C++ compiler installed (clang) by default. To get CMake and OpenMP, run the following.
brew install cmake libomp
NOTE: lightgbm v3.3.3 and older does not support the newest version of OpenMP available as of this writing (v15.x). That was fixed in microsoft/LightGBM#5563. If you end up with OpenMP >=15.0 and lightgbm>=4.0 is not yet available from PyPI, either downgrade OpenMP or build a development version of lightgbm (see "Install from GitHub" in the docs).

Related

Problem with installing dlib python 3.9.6

PS C:\Deepankar\Projects\VaibhavBhaiya-IntruderDetection\PHASE-II> pip install face recognition
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting face
Downloading face-22.0.0-py3-none-any.whl (54 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 54.5/54.5 kB 177.1 kB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement recognition (from versions: none)
ERROR: No matching distribution found for recognition
[notice] A new release of pip is available: 23.0 -> 23.0.1
[notice] To update, run: python.exe -m pip install --upgrade pip
PS C:\Deepankar\Projects\VaibhavBhaiya-IntruderDetection\PHASE-II> python.exe -m pip install --upgrade pip
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: pip in c:\users\deepa\appdata\local\programs\python\python39\lib\site-packages (23.0)
Collecting pip
Downloading pip-23.0.1-py3-none-any.whl (2.1 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 1.2 MB/s eta 0:00:00
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 23.0
Uninstalling pip-23.0:
Successfully uninstalled pip-23.0
ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\Users\deepa\AppData\Local\Temp\pip-uninstall-1kkyucgz\pip.exe'
Consider using the --user option or check the permissions.
PS C:\Deepankar\Projects\VaibhavBhaiya-IntruderDetection\PHASE-II> python.exe -m pip install --user --upgrade pip
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Requirement already satisfied: pip in c:\users\deepa\appdata\local\programs\python\python39\lib\site-packages (23.0.1)
PS C:\Deepankar\Projects\VaibhavBhaiya-IntruderDetection\PHASE-II> pip install dlib
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting dlib
Downloading dlib-19.24.0.tar.gz (3.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 103.2 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [68 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\setup.py:129: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(cmake_version) < '3.1.0':
Building extension for Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\build\lib.win-amd64-cpython-39 -DPYTHON_EXECUTABLE=C:\Users\deepa\AppData\Local\Programs\Python\Python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\build\lib.win-amd64-cpython-39 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You must use Visual Studio to build a python extension on windows. If you
are getting this error it means you have not installed Visual C++. Note
that there are many flavors of Visual Studio, like Visual Studio for C#
development. You need to install Visual Studio for C++.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\setup.py", line 222, in <module>
setup(
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\wheel\bdist_wheel.py", line 325, in run
self.run_command("build")
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\setup.py", line 134, in run
self.build_extension(ext)
File "C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\setup.py", line 171, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-hakhwrt8\\dlib_d175b3b197704551a11d650b52da49e5\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-hakhwrt8\\dlib_d175b3b197704551a11d650b52da49e5\\build\\lib.win-amd64-cpython-39', '-DPYTHON_EXECUTABLE=C:\\Users\\deepa\\AppData\\Local\\Programs\\Python\\Python39\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-hakhwrt8\\dlib_d175b3b197704551a11d650b52da49e5\\build\\lib.win-amd64-cpython-39', '-A', 'x64']' 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 dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib
Running setup.py install for dlib ... error
error: subprocess-exited-with-error
× Running setup.py install for dlib did not run successfully.
│ exit code: 1
╰─> [72 lines of output]
running install
C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\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
running build_ext
C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\setup.py:129: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(cmake_version) < '3.1.0':
Building extension for Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\build\lib.win-amd64-cpython-39 -DPYTHON_EXECUTABLE=C:\Users\deepa\AppData\Local\Programs\Python\Python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\build\lib.win-amd64-cpython-39 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You must use Visual Studio to build a python extension on windows. If you
are getting this error it means you have not installed Visual C++. Note
that there are many flavors of Visual Studio, like Visual Studio for C#
development. You need to install Visual Studio for C++.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\setup.py", line 222, in <module>
setup(
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\install.py", line 68, in run
return orig.install.run(self)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\command\install.py", line 698, in run
self.run_command('build')
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\setup.py", line 134, in run
self.build_extension(ext)
File "C:\Users\deepa\AppData\Local\Temp\pip-install-hakhwrt8\dlib_d175b3b197704551a11d650b52da49e5\setup.py", line 171, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-hakhwrt8\\dlib_d175b3b197704551a11d650b52da49e5\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-hakhwrt8\\dlib_d175b3b197704551a11d650b52da49e5\\build\\lib.win-amd64-cpython-39', '-DPYTHON_EXECUTABLE=C:\\Users\\deepa\\AppData\\Local\\Programs\\Python\\Python39\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-hakhwrt8\\dlib_d175b3b197704551a11d650b52da49e5\\build\\lib.win-amd64-cpython-39', '-A', 'x64']' 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: legacy-install-failure
× Encountered error while trying to install package.
╰─> dlib
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
PS C:\Deepankar\Projects\VaibhavBhaiya-IntruderDetection\PHASE-II> pip install face-recognition
Looking in indexes: https://pypi.org/simple, https://pypi.ngc.nvidia.com
Collecting face-recognition
Downloading face_recognition-1.3.0-py2.py3-none-any.whl (15 kB)
Requirement already satisfied: numpy in c:\users\deepa\appdata\roaming\python\python39\site-packages (from face-recognition) (1.22.2)
Requirement already satisfied: Click>=6.0 in c:\users\deepa\appdata\roaming\python\python39\site-packages (from face-recognition) (8.0.4)
Requirement already satisfied: Pillow in c:\users\deepa\appdata\roaming\python\python39\site-packages (from face-recognition) (9.0.1)
Collecting dlib>=19.7
Downloading dlib-19.24.0.tar.gz (3.2 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.2/3.2 MB 160.1 kB/s eta 0:00:00
Preparing metadata (setup.py) ... done
Requirement already satisfied: face-recognition-models>=0.3.0 in c:\users\deepa\appdata\local\programs\python\python39\lib\site-packages (from face-recognition) (0.3.0)
Requirement already satisfied: colorama in c:\users\deepa\appdata\roaming\python\python39\site-packages (from Click>=6.0->face-recognition) (0.4.4)
Building wheels for collected packages: dlib
Building wheel for dlib (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [68 lines of output]
running bdist_wheel
running build
running build_py
running build_ext
C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\setup.py:129: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(cmake_version) < '3.1.0':
Building extension for Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\build\lib.win-amd64-cpython-39 -DPYTHON_EXECUTABLE=C:\Users\deepa\AppData\Local\Programs\Python\Python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\build\lib.win-amd64-cpython-39 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You must use Visual Studio to build a python extension on windows. If you
are getting this error it means you have not installed Visual C++. Note
that there are many flavors of Visual Studio, like Visual Studio for C#
development. You need to install Visual Studio for C++.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\setup.py", line 222, in <module>
setup(
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\wheel\bdist_wheel.py", line 325, in run
self.run_command("build")
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\setup.py", line 134, in run
self.build_extension(ext)
File "C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\setup.py", line 171, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-fv7x7lx3\\dlib_b7cc73b6dfd4410ea3e6b763453889d8\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-fv7x7lx3\\dlib_b7cc73b6dfd4410ea3e6b763453889d8\\build\\lib.win-amd64-cpython-39', '-DPYTHON_EXECUTABLE=C:\\Users\\deepa\\AppData\\Local\\Programs\\Python\\Python39\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-fv7x7lx3\\dlib_b7cc73b6dfd4410ea3e6b763453889d8\\build\\lib.win-amd64-cpython-39', '-A', 'x64']' 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 dlib
Running setup.py clean for dlib
Failed to build dlib
Installing collected packages: dlib, face-recognition
Running setup.py install for dlib ... error
error: subprocess-exited-with-error
× Running setup.py install for dlib did not run successfully.
│ exit code: 1
╰─> [72 lines of output]
running install
C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\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
running build_ext
C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\setup.py:129: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(cmake_version) < '3.1.0':
Building extension for Python 3.9.6 (tags/v3.9.6:db3ff76, Jun 28 2021, 15:26:21) [MSC v.1929 64 bit (AMD64)]
Invoking CMake setup: 'cmake C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\tools\python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\build\lib.win-amd64-cpython-39 -DPYTHON_EXECUTABLE=C:\Users\deepa\AppData\Local\Programs\Python\Python39\python.exe -DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\build\lib.win-amd64-cpython-39 -A x64'
-- Building for: NMake Makefiles
CMake Error at CMakeLists.txt:5 (message):
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
You must use Visual Studio to build a python extension on windows. If you
are getting this error it means you have not installed Visual C++. Note
that there are many flavors of Visual Studio, like Visual Studio for C#
development. You need to install Visual Studio for C++.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
-- Configuring incomplete, errors occurred!
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\setup.py", line 222, in <module>
setup(
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\command\install.py", line 68, in run
return orig.install.run(self)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\command\install.py", line 698, in run
self.run_command('build')
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\command\build.py", line 132, in run
self.run_command(cmd_name)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\dist.py", line 1208, in run_command
super().run_command(command)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\setup.py", line 134, in run
self.build_extension(ext)
File "C:\Users\deepa\AppData\Local\Temp\pip-install-fv7x7lx3\dlib_b7cc73b6dfd4410ea3e6b763453889d8\setup.py", line 171, in build_extension
subprocess.check_call(cmake_setup, cwd=build_folder)
File "C:\Users\deepa\AppData\Local\Programs\Python\Python39\lib\subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', 'C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-fv7x7lx3\\dlib_b7cc73b6dfd4410ea3e6b763453889d8\\tools\\python', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-fv7x7lx3\\dlib_b7cc73b6dfd4410ea3e6b763453889d8\\build\\lib.win-amd64-cpython-39', '-DPYTHON_EXECUTABLE=C:\\Users\\deepa\\AppData\\Local\\Programs\\Python\\Python39\\python.exe', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_RELEASE=C:\\Users\\deepa\\AppData\\Local\\Temp\\pip-install-fv7x7lx3\\dlib_b7cc73b6dfd4410ea3e6b763453889d8\\build\\lib.win-amd64-cpython-39', '-A', 'x64']' 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: legacy-install-failure
× Encountered error while trying to install package.
╰─> dlib
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
Trying to install face-recognition

pyqt5 5.15.7 error: subprocess-exited-with-error

I tried to install pyqt5 on my mac air m2 and i got this error :
pip3 install pyqt5
Collecting pyqt5
Using cached PyQt5-5.15.7.tar.gz (3.2 MB)
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
╰─> [33 lines of output]
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 144, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 351, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 333, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 148, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/zq/z6_slmcx6fjfx18wnzwh77kh0000gn/T/pip-build-env-jdrfm05e/overlay/lib/python3.11/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/private/var/folders/zq/z6_slmcx6fjfx18wnzwh77kh0000gn/T/pip-build-env-jdrfm05e/overlay/lib/python3.11/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/private/var/folders/zq/z6_slmcx6fjfx18wnzwh77kh0000gn/T/pip-build-env-jdrfm05e/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 585, in setup
self.apply_user_defaults(tool)
File "/private/var/folders/zq/z6_slmcx6fjfx18wnzwh77kh0000gn/T/pip-install-2vvfy4aa/pyqt5_740441afdd6c412991129051ada10a0f/project.py", line 69, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/zq/z6_slmcx6fjfx18wnzwh77kh0000gn/T/pip-build-env-jdrfm05e/overlay/lib/python3.11/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/private/var/folders/zq/z6_slmcx6fjfx18wnzwh77kh0000gn/T/pip-build-env-jdrfm05e/overlay/lib/python3.11/site-packages/sipbuild/project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/private/var/folders/zq/z6_slmcx6fjfx18wnzwh77kh0000gn/T/pip-build-env-jdrfm05e/overlay/lib/python3.11/site-packages/pyqtbuild/builder.py", line 69, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[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.
so i tried it with brew and all combination with pip
i also reinstall everything.
thanks for any help^^
pip3 install pyqt5
pip3 install pyqt5==5.15.7 (also different versions)
reinstall pip
reinstall pytube
try it again (not working)
install Homebrew
install everythink
try it again (do not working)
uninstall homerew
search in google (found nothing)
asking now for help

Require help installing pyqt6

I have been trying to install pyqt6 on my linux device!
tried running:
pip install pyqt6
pip3 install pyqt6
python -m pip install pyqt6
python3 -m pip install pyqt6
and the variations of such commands. I also tried updating pip and python to latest versions it would give me (python 3.9.2 and pip 22.1.2)
error i get when installing pyqt6 is as follows:
Defaulting to user installation because normal site-packages is not writeable
Collecting pyqt6
Using cached PyQt6-6.3.1.tar.gz (1.0 MB)
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
╰─> [29 lines of output]
Traceback (most recent call last):
File "/home/user1/.local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 156, in prepare_metadata_for_build_wheel
hook = backend.prepare_metadata_for_build_wheel
AttributeError: module 'sipbuild.api' has no attribute 'prepare_metadata_for_build_wheel'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/user1/.local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/home/user1/.local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/user1/.local/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 160, in prepare_metadata_for_build_wheel
whl_basename = backend.build_wheel(metadata_directory, config_settings)
File "/tmp/pip-build-env-lb2ttoa7/overlay/lib/python3.9/site-packages/sipbuild/api.py", line 46, in build_wheel
project = AbstractProject.bootstrap('wheel',
File "/tmp/pip-build-env-lb2ttoa7/overlay/lib/python3.9/site-packages/sipbuild/abstract_project.py", line 87, in bootstrap
project.setup(pyproject, tool, tool_description)
File "/tmp/pip-build-env-lb2ttoa7/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 584, in setup
self.apply_user_defaults(tool)
File "project.py", line 67, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-lb2ttoa7/overlay/lib/python3.9/site-packages/pyqtbuild/project.py", line 70, in apply_user_defaults
super().apply_user_defaults(tool)
File "/tmp/pip-build-env-lb2ttoa7/overlay/lib/python3.9/site-packages/sipbuild/project.py", line 236, in apply_user_defaults
self.builder.apply_user_defaults(tool)
File "/tmp/pip-build-env-lb2ttoa7/overlay/lib/python3.9/site-packages/pyqtbuild/builder.py", line 67, in apply_user_defaults
raise PyProjectOptionException('qmake',
sipbuild.pyproject.PyProjectOptionException
[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 help would be appreciated
edits:
to answer comments (since i replied there by accident instead of updating:
unsure what linux distro i'm running since it's the linux de available on chromebooks, if there's an official package for it I don't know what it is.
link 1 doesn't help just recommends i try steps i've done already such as updating pip

Can't install Pyinstaller through pip

I am reasonably new to python and want to make a .exe from a .py.
However when i try to install pyinstaller with pip i get the following error:
I tried numerous things but cant resolve it.
Collecting pyinstaller
Using cached pyinstaller-5.2-py3-none-win_amd64.whl (1.2 MB)
Collecting pyinstaller-hooks-contrib>=2021.4
Using cached pyinstaller_hooks_contrib-2022.8-py2.py3-none-any.whl (239 kB)
Collecting pefile>=2022.5.30
Using cached pefile-2022.5.30.tar.gz (72 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Requirement already satisfied: setuptools in c:\program files\spyder\pkgs (from pyinstaller) (62.3.2)
Requirement already satisfied: pywin32-ctypes>=0.2.0 in c:\program files\spyder\pkgs (from pyinstaller) (0.2.0)
Collecting altgraph
Using cached altgraph-0.17.2-py2.py3-none-any.whl (21 kB)
Collecting future
Using cached future-0.18.2.tar.gz (829 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'
Note: you may need to restart the kernel to use updated packages.
error: subprocess-exited-with-error
python setup.py egg_info did not run successfully.
exit code: 1
[6 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Z640179\AppData\Local\Temp\pip-install-klih4e96\future_d33b369ed28249c0b3c49bd67cf826d5\setup.py", line 86, in <module>
import src.future
ModuleNotFoundError: No module named 'src'
[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 detail
Does anybody know how to resolve this ?
EDIT: i tried installing SRC but got the following problem:
Collecting src
Using cached src-0.0.7.zip (6.3 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: src
Building wheel for src (setup.py): started
Building wheel for src (setup.py): finished with status 'error'
Running setup.py clean for src
Failed to build src
Installing collected packages: src
Running setup.py install for src: started
Running setup.py install for src: finished with status 'error'
Note: you may need to restart the kernel to use updated packages.
error: subprocess-exited-with-error
python setup.py bdist_wheel did not run successfully.
exit code: 1
[49 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib
creating build\lib\src
copying src\__init__.py -> build\lib\src
running egg_info
writing src.egg-info\PKG-INFO
writing dependency_links to src.egg-info\dependency_links.txt
deleting src.egg-info\entry_points.txt
writing requirements to src.egg-info\requires.txt
writing top-level names to src.egg-info\top_level.txt
reading manifest file 'src.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE.rst'
writing manifest file 'src.egg-info\SOURCES.txt'
C:\Program Files\Spyder\pkgs\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\Z640179\AppData\Local\Temp\pip-install-knke7ajt\src_eb79a5c109004a059d46335d661a3522\setup.py", line 70, in <module>
setup(
File "C:\Program Files\Spyder\pkgs\setuptools\__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "C:\Program Files\Spyder\pkgs\setuptools\_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\Program Files\Spyder\pkgs\setuptools\_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\Program Files\Spyder\pkgs\setuptools\_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\Program Files\Spyder\pkgs\setuptools\dist.py", line 1229, in run_command
super().run_command(command)
File "C:\Program Files\Spyder\pkgs\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Program Files\Spyder\pkgs\wheel\bdist_wheel.py", line 301, in run
install = self.reinitialize_command('install',
File "C:\Program Files\Spyder\pkgs\setuptools\__init__.py", line 142, in reinitialize_command
cmd = _Command.reinitialize_command(self, command, reinit_subcommands)
File "C:\Program Files\Spyder\pkgs\setuptools\_distutils\cmd.py", line 305, in reinitialize_command
return self.distribution.reinitialize_command(command,
File "C:\Program Files\Spyder\pkgs\setuptools\_distutils\dist.py", line 951, in reinitialize_command
for sub in command.get_sub_commands():
File "C:\Program Files\Spyder\pkgs\setuptools\_distutils\cmd.py", line 324, in get_sub_commands
if method is None or method(self):
File "C:\Program Files\Spyder\pkgs\setuptools\_distutils\command\install.py", line 756, in has_lib
return (self.distribution.has_pure_modules() or
AttributeError: 'NoneType' object has no attribute 'has_pure_modules'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for src
error: subprocess-exited-with-error
Running setup.py install for src did not run successfully.
exit code: 1
[2 lines of output]
running install
You've probably made a mistake here and are trying to install from a 'src' directory which doesn't exist.
[end of output]
I tried to update wheel but it is already up to date.
Looks like you need to install src.
Pip install src
Pyinstaller can’t convert a file to an exe if a required packages isn’t installed.

pyOpenSSL on Windows 7 Crypto error

Ok, I've attempted to make pyopenssl work on my windows 7 x64 instance and can't be very much luck.
I want to use pyopenSSL and I've installed like this pip install pyopenSSL.
Matter is I can't make it run, Installed python 2.7 added to register, make pywin32 for it, but can't work. I have all necessary config in PATH and scripts, but doesn't work at all.
When I tried here's the log I get.
What am I missing here? I'm blind. Thanks in advance for any help.
------------------------------------------------------------
C:\sdks\Python27\Scripts\pip-script.py run on 08/05/13 00:37:15
Downloading/unpacking pyopenssl
Getting page https://pypi.python.org/simple/pyopenssl/
URLs to search for versions for pyopenssl:
* https://pypi.python.org/simple/pyopenssl/
Analyzing links from page https://pypi.python.org/simple/pyOpenSSL/
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.4.exe#md5=8ae7625797c7c9a9faf76499c0ad5061 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.13-py2.4-win32.egg#md5=8695c7c3d19ff6d6fb8d4d6071a880fc (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.6.tar.gz#md5=af67fda6d2125cae9c56ee50430a40c7 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.6
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.12.winxp32-py2.7.msi#md5=727f31a727cb29302d7618bf2bcb8af3 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.4.exe#md5=a808b0e53d31aea0158ef56f8fc0af4b (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.12-py2.7-win32.egg#md5=c343e3833b725e060c094bbf33349349 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.12.winxp32-py3.2.msi#md5=a64f1513926c994b44e9922e56c47a84 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.5.exe#md5=b61ef0e38b6313277ca6b9c738700641 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.10-py2.6-win32.egg#md5=b480ef0b4b26d6493b62994f4c2903db (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.13-py3.2-win32.egg#md5=8c21807ad495d6bdd4a729f21cc8c164 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.10-py2.5-win32.egg#md5=00ddbd942655468a0f6d1e9947ec05a4 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.9.win32-py2.6.exe#md5=f5f39048dd5f05375f9a8198fe993fcc (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.13-py2.5-win32.egg#md5=9f251206280201e7837c51e15c32a4e5 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.12-py2.4-win32.egg#md5=4cb0d30f99b3d3e72996dba820f1cad0 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.7.tar.gz#md5=1924edc58c1e99f27763971d9959ea15 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.7
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.9.tar.gz#md5=5bf282b2d6a03af921920c34079580f2 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.9
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.12.winxp32-py2.6.msi#md5=9ff89287d92462d7ad1b4638746110be (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.12-py2.6-win32.egg#md5=e006a26f085cf6399eee86b6485eaa6d (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.5.exe#md5=2e6148d48dd9864ebdac2c94b36ea9d7 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.12-py2.6-win-amd64.egg#md5=8797b1f77437405ec2173f3646160a47 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.8.tar.gz#md5=c1d86fdeb0cfd33dd42aa243c6a41f5e (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.8
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.6.exe#md5=54c7dd629bf4004569a7c97c9ef6daa5 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.7.msi#md5=3438c0e3a87060959d7061f939c6b03d (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.12.winxp32-py2.5.msi#md5=a340bec6c4d1cd8a80f56ce6cdfbe5d2 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.4/p/pyOpenSSL/pyOpenSSL-0.10-py2.4-win32.egg#md5=c12159efa233333541140c24e1fa094b (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.12-py3.2-win32.egg#md5=7f0777a02614f729d8ef9627995d2705 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.6.msi#md5=90920217fb35d76524cab66c8c135cc8 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.12-py2.5-win32.egg#md5=45d679ed7d386f48d1d5dd1bc8e539cb (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.6.msi#md5=1646faad52bcbdb56c81435a51e99bf5 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.10.winxp32-py2.5.msi#md5=b7cf3e16a675937543243bef3ad3c106 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py3.2.exe#md5=2bb725ce9ea21ccac9999d614aac2499 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.6.exe#md5=8935156097d9396161063fba5eb7f4a5 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Skipping link https://pypi.python.org/packages/2.6/p/pyOpenSSL/pyOpenSSL-0.13-py2.6-win32.egg#md5=939c493e3415da166918bc86c40a945b (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.10.tar.gz#md5=34db8056ec53ce80c7f5fc58bee9f093 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.10
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.13-py2.7-win32.egg#md5=e0b7b0d2cccca83ae38e11c3a105dfe4 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .egg
Skipping link https://pypi.python.org/packages/2.5/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.5.msi#md5=6c24249c2dc772e4bb60bbb3a139eba8 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Skipping link https://pypi.python.org/packages/2.7/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py2.7.exe#md5=3acf96ea5ed7aec880570cc6477f8507 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .exe
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.12.tar.gz#md5=60a7bbb6160950823eddcbba2cbcb0d6 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.12
Skipping link https://pypi.python.org/packages/3.2/p/pyOpenSSL/pyOpenSSL-0.13.winxp32-py3.2.msi#md5=2e8e10ecfcf1f007ce2503839a3a2e30 (from https://pypi.python.org/simple/pyOpenSSL/); unknown archive format: .msi
Found link https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.13.tar.gz#md5=767bca18a71178ca353dff9e10941929 (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.13
Found link https://launchpadlibrarian.net/58498441/pyOpenSSL-0.11.tar.gz#md5=9e76e57e00fa48745fcfe23944db1e6c (from https://pypi.python.org/simple/pyOpenSSL/), version: 0.11
Using version 0.13 (newest of versions: 0.13, 0.12, 0.11, 0.10, 0.9, 0.8, 0.7, 0.6)
Downloading from URL https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.13.tar.gz#md5=767bca18a71178ca353dff9e10941929 (from https://pypi.python.org/simple/pyOpenSSL/)
Running setup.py egg_info for package pyopenssl
running egg_info
creating pip-egg-info\pyOpenSSL.egg-info
writing pip-egg-info\pyOpenSSL.egg-info\PKG-INFO
writing top-level names to pip-egg-info\pyOpenSSL.egg-info\top_level.txt
writing dependency_links to pip-egg-info\pyOpenSSL.egg-info\dependency_links.txt
writing manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'pip-egg-info\pyOpenSSL.egg-info\SOURCES.txt'
Source in c:\users\igorco~1\appdata\local\temp\pip-build-igor costa\pyopenssl has version 0.13, which satisfies requirement pyopenssl
Installing collected packages: pyopenssl
Running setup.py install for pyopenssl
Running command C:\sdks\Python27\python.exe -c "import setuptools;__file__='c:\\users\\igorco~1\\appdata\\local\\temp\\pip-build-Igor Costa\\pyopenssl\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\igorco~1\appdata\local\temp\pip-rwp7c6-record\install-record.txt --single-version-externally-managed
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\__init__.py -> build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\tsafe.py -> build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\version.py -> build\lib.win-amd64-2.7\OpenSSL
creating build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\__init__.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\util.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_crypto.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_rand.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_ssl.py -> build\lib.win-amd64-2.7\OpenSSL\test
running build_ext
building 'OpenSSL.crypto' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl\setup.py", line 221, in <module>
... and much more ;)"""
File "C:\sdks\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\sdks\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\sdks\Python27\lib\site-packages\distribute-0.6.49-py2.7.egg\setuptools\command\install.py", line 53, in run
return _install.run(self)
File "C:\sdks\Python27\lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\sdks\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\sdks\Python27\lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\sdks\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl\setup.py", line 166, in run
build_ext.run(self)
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 498, in build_extension
depends=ext.depends)
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
Complete output from command C:\sdks\Python27\python.exe -c "import setuptools;__file__='c:\\users\\igorco~1\\appdata\\local\\temp\\pip-build-Igor Costa\\pyopenssl\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\igorco~1\appdata\local\temp\pip-rwp7c6-record\install-record.txt --single-version-externally-managed:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\__init__.py -> build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\tsafe.py -> build\lib.win-amd64-2.7\OpenSSL
copying OpenSSL\version.py -> build\lib.win-amd64-2.7\OpenSSL
creating build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\__init__.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\util.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_crypto.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_rand.py -> build\lib.win-amd64-2.7\OpenSSL\test
copying OpenSSL\test\test_ssl.py -> build\lib.win-amd64-2.7\OpenSSL\test
running build_ext
building 'OpenSSL.crypto' extension
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl\setup.py", line 221, in <module>
... and much more ;)"""
File "C:\sdks\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\sdks\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\sdks\Python27\lib\site-packages\distribute-0.6.49-py2.7.egg\setuptools\command\install.py", line 53, in run
return _install.run(self)
File "C:\sdks\Python27\lib\distutils\command\install.py", line 563, in run
self.run_command('build')
File "C:\sdks\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\sdks\Python27\lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\sdks\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\sdks\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl\setup.py", line 166, in run
build_ext.run(self)
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 448, in build_extensions
self.build_extension(ext)
File "C:\sdks\Python27\lib\distutils\command\build_ext.py", line 498, in build_extension
depends=ext.depends)
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 473, in compile
self.initialize()
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 383, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\sdks\Python27\lib\distutils\msvc9compiler.py", line 299, in query_vcvarsall
raise ValueError(str(list(result.keys())))
ValueError: [u'path']
----------------------------------------
Cleaning up...
Removing temporary dir c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa...
Command C:\sdks\Python27\python.exe -c "import setuptools;__file__='c:\\users\\igorco~1\\appdata\\local\\temp\\pip-build-Igor Costa\\pyopenssl\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\igorco~1\appdata\local\temp\pip-rwp7c6-record\install-record.txt --single-version-externally-managed failed with error code 1 in c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl
Exception information:
Traceback (most recent call last):
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\basecommand.py", line 134, in main
status = self.run(options, args)
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\commands\install.py", line 241, in run
requirement_set.install(install_options, global_options, root=options.root_path)
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\req.py", line 1277, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\req.py", line 622, in install
cwd=self.source_dir, filter_stdout=self._filter_install, show_stdout=False)
File "C:\sdks\Python27\lib\site-packages\pip-1.4-py2.7.egg\pip\util.py", line 670, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command C:\sdks\Python27\python.exe -c "import setuptools;__file__='c:\\users\\igorco~1\\appdata\\local\\temp\\pip-build-Igor Costa\\pyopenssl\\setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\igorco~1\appdata\local\temp\pip-rwp7c6-record\install-record.txt --single-version-externally-managed failed with error code 1 in c:\users\igorco~1\appdata\local\temp\pip-build-Igor Costa\pyopenssl
You can download pyOpenSsl built msi here!
If u use 64bit windows, u can just download 32bit built package, and when install, choose the python location manually.
good luck.

Categories

Resources