How should I set up the build system to make sure pyorbbecsdk gets installed in my conda virtual env instead of the base environment?
Hello, I'm facing the following technical challenge when using this code. Could you please suggest how to address it?
Build system configuration assistance required: Project: pyorbbecsdk.sln in Visual Studio Problem: Generated binaries link to Python 3.12 (system) Requirement: Must target Python 3.9 (Conda virtual env) Please advise necessary configuration changes.
Please follow these steps to ensure the build targets the correct Python environment:
1.Make sure your virtual environment is fully set up, especially pybind11.
2.Activate the virtual environment.
3.Update the Python paths in pyorbbecsdk/CMakeLists.txt before the line: find_package(Python3 REQUIRED COMPONENTS Interpreter Development)
For example:
Replace with your Python path
set(Python3_ROOT_DIR "/home/anaconda3/envs/py3.6.8")
Replace with your Pybind11 path
set(pybind11_DIR "${Python3_ROOT_DIR}/lib/python3.6/site-packages/pybind11/share/cmake/pybind11")