Reputation: 11
I want to install the BGSLibrary (https://pypi.org/project/pybgs/) but I have an error. I don't know what to do... Here is the error :
(base) C:\Users\qh742176>pip install pybgs
Collecting pybgs
Using cached pybgs-3.0.0.post2.tar.gz (850 kB)
Building wheels for collected packages: pybgs
Building wheel for pybgs (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\qh742176\\AppData\\Local\\Temp\\pip-install-fjuvyr0k\\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40\\setup.py'"'"'; __file__='"'"'C:\\Users\\qh742176\\AppData\\Local\\Temp\\pip-install-fjuvyr0k\\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\qh742176\AppData\Local\Temp\pip-wheel-hlpvbn7p'
cwd: C:\Users\qh742176\AppData\Local\Temp\pip-install-fjuvyr0k\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40\
Complete output (7 lines):
running bdist_wheel
running build
running build_ext
Preparing the build environment
Configuring cmake project
cmake -HC:\Users\qh742176\AppData\Local\Temp\pip-install-fjuvyr0k\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40 -Bbuild\temp.win-amd64-3.8\Release -DPYTHON_EXECUTABLE=C:\ProgramData\Anaconda3\python.exe -DBGS_CORE_STATIC=ON -DBGS_PYTHON_SUPPORT=ON -DBGS_PYTHON_ONLY=ON -DBGS_PYTHON_VERSION=3.8
error: command 'cmake' failed: No such file or directory
----------------------------------------
ERROR: Failed building wheel for pybgs
Running setup.py clean for pybgs
Failed to build pybgs
Installing collected packages: pybgs
Running setup.py install for pybgs ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\qh742176\\AppData\\Local\\Temp\\pip-install-fjuvyr0k\\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40\\setup.py'"'"'; __file__='"'"'C:\\Users\\qh742176\\AppData\\Local\\Temp\\pip-install-fjuvyr0k\\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\qh742176\AppData\Local\Temp\pip-record-fxqcfc47\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\Include\pybgs'
cwd: C:\Users\qh742176\AppData\Local\Temp\pip-install-fjuvyr0k\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40\
Complete output (7 lines):
running install
running build
running build_ext
Preparing the build environment
Configuring cmake project
cmake -HC:\Users\qh742176\AppData\Local\Temp\pip-install-fjuvyr0k\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40 -Bbuild\temp.win-amd64-3.8\Release -DPYTHON_EXECUTABLE=C:\ProgramData\Anaconda3\python.exe -DBGS_CORE_STATIC=ON -DBGS_PYTHON_SUPPORT=ON -DBGS_PYTHON_ONLY=ON -DBGS_PYTHON_VERSION=3.8
error: command 'cmake' failed: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\qh742176\\AppData\\Local\\Temp\\pip-install-fjuvyr0k\\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40\\setup.py'"'"'; __file__='"'"'C:\\Users\\qh742176\\AppData\\Local\\Temp\\pip-install-fjuvyr0k\\pybgs_ac5042fa9d0c4e1faf1ee0536d1a5f40\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\qh742176\AppData\Local\Temp\pip-record-fxqcfc47\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\Include\pybgs' Check the logs for full command output.
I have python with Anaconda. Python 3.8.8
UPDATE : I didn't download OpenCV neither Visual Studio. Now I have Visual Studio Community 2019 and OpenCV 4.5.2. But now during the Building binaries I have this error : MSBUILD : error MSB001 : Unknow switch. Here is the error :
(base) C:\Users\quent>pip install pybgs
Collecting pybgs
Using cached pybgs-3.0.0.post2.tar.gz (850 kB)
Building wheels for collected packages: pybgs
Building wheel for pybgs (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\quent\\AppData\\Local\\Temp\\pip-install-ii8ti1lp\\pybgs_4f048535b22c4fd299172823d5938fb6\\setup.py'"'"'; __file__='"'"'C:\\Users\\quent\\AppData\\Local\\Temp\\pip-install-ii8ti1lp\\pybgs_4f048535b22c4fd299172823d5938fb6\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\quent\AppData\Local\Temp\pip-wheel-ao02fvnp'
cwd: C:\Users\quent\AppData\Local\Temp\pip-install-ii8ti1lp\pybgs_4f048535b22c4fd299172823d5938fb6\
Complete output (61 lines):
running bdist_wheel
running build
running build_ext
Preparing the build environment
Configuring cmake project
C:\Program Files\CMake\bin\cmake.exe -HC:\Users\quent\AppData\Local\Temp\pip-install-ii8ti1lp\pybgs_4f048535b22c4fd299172823d5938fb6 -Bbuild\temp.win-amd64-3.8\Release -DPYTHON_EXECUTABLE=C:\ProgramData\Anaconda3\python.exe -DBGS_CORE_STATIC=ON -DBGS_PYTHON_SUPPORT=ON -DBGS_PYTHON_ONLY=ON -DBGS_PYTHON_VERSION=3.8
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.28.29915.0
-- The CXX compiler identification is MSVC 19.28.29915.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--
-- BGS_PYTHON_SUPPORT: ON
-- BGS_PYTHON_ONLY: ON
-- BGS_CORE_STATIC: ON
-- PYTHON VERSION: 3.8
-- OpenCV ARCH: x64
-- OpenCV RUNTIME: vc15
-- OpenCV STATIC: OFF
-- Found OpenCV: C:/Users/quent/Downloads/opencv/build (found version "4.5.2")
-- Found OpenCV 4.5.2 in C:/Users/quent/Downloads/opencv/build/x64/vc15/lib
-- You might need to add C:\Users\quent\Downloads\opencv\build\x64\vc15\bin to your PATH to be able to run your applications.
--
-- OpenCV library status:
-- version: 4.5.2
-- libraries: opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_gapi;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;opencv_world
-- include path: C:/Users/quent/Downloads/opencv/build/include
-- Found PythonInterp: C:/ProgramData/Anaconda3/python.exe (found suitable version "3.8.8", minimum required is "3.8")
-- Found PythonLibs: C:/ProgramData/Anaconda3/libs/Python38.lib
-- pybind11 v2.3.dev1
--
-- Python library status:
-- executable: C:/ProgramData/Anaconda3/python.exe
-- library:
-- include path: C:/ProgramData/Anaconda3/include
-- NUMPY_INCLUDE_DIR: C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\include
-- Bulding bgslibrary_core STATIC
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/quent/AppData/Local/Temp/pip-install-ii8ti1lp/pybgs_4f048535b22c4fd299172823d5938fb6/build/temp.win-amd64-3.8/Release
Building binaries
C:\Program Files\CMake\bin\cmake.exe --build build\temp.win-amd64-3.8\Release --config Release -- -j8
Microsoft (R) Build Engine version 16.9.0+5e4b48a27 pour .NET Framework
Copyright (C) Microsoft Corporation. Tous droits r‚serv‚s.
MSBUILD : error MSB1001: Commutateur inconnu.
Commutateurÿ:ÿ-j8
Pour la syntaxe du commutateur, tapez "MSBuild -help"
error: command 'C:\\Program Files\\CMake\\bin\\cmake.exe' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pybgs
Running setup.py clean for pybgs
Failed to build pybgs
Installing collected packages: pybgs
Running setup.py install for pybgs ... error
ERROR: Command errored out with exit status 1:
command: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\quent\\AppData\\Local\\Temp\\pip-install-ii8ti1lp\\pybgs_4f048535b22c4fd299172823d5938fb6\\setup.py'"'"'; __file__='"'"'C:\\Users\\quent\\AppData\\Local\\Temp\\pip-install-ii8ti1lp\\pybgs_4f048535b22c4fd299172823d5938fb6\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\quent\AppData\Local\Temp\pip-record-szv2k3di\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\Include\pybgs'
cwd: C:\Users\quent\AppData\Local\Temp\pip-install-ii8ti1lp\pybgs_4f048535b22c4fd299172823d5938fb6\
Complete output (61 lines):
running install
running build
running build_ext
Preparing the build environment
Configuring cmake project
C:\Program Files\CMake\bin\cmake.exe -HC:\Users\quent\AppData\Local\Temp\pip-install-ii8ti1lp\pybgs_4f048535b22c4fd299172823d5938fb6 -Bbuild\temp.win-amd64-3.8\Release -DPYTHON_EXECUTABLE=C:\ProgramData\Anaconda3\python.exe -DBGS_CORE_STATIC=ON -DBGS_PYTHON_SUPPORT=ON -DBGS_PYTHON_ONLY=ON -DBGS_PYTHON_VERSION=3.8
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- The C compiler identification is MSVC 19.28.29915.0
-- The CXX compiler identification is MSVC 19.28.29915.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.28.29910/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
--
-- BGS_PYTHON_SUPPORT: ON
-- BGS_PYTHON_ONLY: ON
-- BGS_CORE_STATIC: ON
-- PYTHON VERSION: 3.8
-- OpenCV ARCH: x64
-- OpenCV RUNTIME: vc15
-- OpenCV STATIC: OFF
-- Found OpenCV: C:/Users/quent/Downloads/opencv/build (found version "4.5.2")
-- Found OpenCV 4.5.2 in C:/Users/quent/Downloads/opencv/build/x64/vc15/lib
-- You might need to add C:\Users\quent\Downloads\opencv\build\x64\vc15\bin to your PATH to be able to run your applications.
--
-- OpenCV library status:
-- version: 4.5.2
-- libraries: opencv_calib3d;opencv_core;opencv_dnn;opencv_features2d;opencv_flann;opencv_gapi;opencv_highgui;opencv_imgcodecs;opencv_imgproc;opencv_ml;opencv_objdetect;opencv_photo;opencv_stitching;opencv_video;opencv_videoio;opencv_world
-- include path: C:/Users/quent/Downloads/opencv/build/include
-- Found PythonInterp: C:/ProgramData/Anaconda3/python.exe (found suitable version "3.8.8", minimum required is "3.8")
-- Found PythonLibs: C:/ProgramData/Anaconda3/libs/Python38.lib
-- pybind11 v2.3.dev1
--
-- Python library status:
-- executable: C:/ProgramData/Anaconda3/python.exe
-- library:
-- include path: C:/ProgramData/Anaconda3/include
-- NUMPY_INCLUDE_DIR: C:\ProgramData\Anaconda3\lib\site-packages\numpy\core\include
-- Bulding bgslibrary_core STATIC
-- Configuring done
-- Generating done
-- Build files have been written to: C:/Users/quent/AppData/Local/Temp/pip-install-ii8ti1lp/pybgs_4f048535b22c4fd299172823d5938fb6/build/temp.win-amd64-3.8/Release
Building binaries
C:\Program Files\CMake\bin\cmake.exe --build build\temp.win-amd64-3.8\Release --config Release -- -j8
Microsoft (R) Build Engine version 16.9.0+5e4b48a27 pour .NET Framework
Copyright (C) Microsoft Corporation. Tous droits r‚serv‚s.
MSBUILD : error MSB1001: Commutateur inconnu.
Commutateurÿ:ÿ-j8
Pour la syntaxe du commutateur, tapez "MSBuild -help"
error: command 'C:\\Program Files\\CMake\\bin\\cmake.exe' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\ProgramData\Anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\quent\\AppData\\Local\\Temp\\pip-install-ii8ti1lp\\pybgs_4f048535b22c4fd299172823d5938fb6\\setup.py'"'"'; __file__='"'"'C:\\Users\\quent\\AppData\\Local\\Temp\\pip-install-ii8ti1lp\\pybgs_4f048535b22c4fd299172823d5938fb6\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\quent\AppData\Local\Temp\pip-record-szv2k3di\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\ProgramData\Anaconda3\Include\pybgs' Check the logs for full command output.
Upvotes: 1
Views: 1531
Reputation: 7970
error: command 'cmake' failed: No such file or directory
you dont have CMake installed or its not available in PATH when you try to install pybgs.
https://github.com/andrewssobral/bgslibrary/wiki/Installation-instructions---Windows clearly indicates that you need:
* OpenCV 2.4.x, 3.4.x, 4.x
* Visual Studio 2013, 2015, 2017
* CMake 3.12 or higher
if you have those installed, you probably need to activate dev prompt for visual studio..
Upvotes: 1