Sensor Model | all |
Firmware Version | GoPxL 1.x.xxx.xx |
SDK Version | n/a |
How do I Install Python Libraries to GoPxL (PC)?
-
Open Command Prompt or Terminal: Start by opening your command prompt (Windows) or Powershell.
-
Navigate to the res folder in the desired GoPxL instance Directory: Change your directory to the
res\python
folder within the GoPxL Utilities package. Use the following command:
Example : cd C:\_GoPxL\1.1.11.1\_1.1.11.1_SOFTWARE_GoPxL_Utilities\GoPxL\res\pythoncd C:\_GoPxL\1.1.11.1\_1.1.11.1_SOFTWARE_GoPxL_Utilities\GoPxL\res\python
#Alternatively, you can use a relative path
cd ...\1.1.11.1_SOFTWARE_GoPxL_Utilities\GoPxL\res\python3. Install the Desired Library: Use the
.\python3.exe
command to install the library using pip..\python3.exe -m pip install <library>
For example, to install OpenCV, you would run:
-
.\python3.exe -m pip install opencv-python
-
- 4. Verify Installation: After installation, you can verify that OpenCV has been installed correctly by running:
5. Consult Documentation: If you need to install additional libraries or have specific requirements, refer to the official documentation for GoPxL or the library you are installing.import cv2
log_info(cv2.__version__)Install a Library from a .whl Package:
If you have a.whl
(wheel) file for the library you want to install, follow these steps:- Ensure the
.whl
file is located in theres\\python
directory or provide the full path to the file. - Use the following command to install the library from the
.whl
file:
./python3.exe -m pip install <filename>.whl
Replace
<filename>
with the actual name of the wheel file. For example, if you have a file namedopencv_python-4.5.3-cp39-cp39-win_amd64.whl
, you would run- Ensure the
./python3.exe -m pip install opencv_python-4.5.3-cp39-cp39-win_amd64.whl
Comments
0 comments
Please sign in to leave a comment.