<< return to Pixycam.com

User Tools

Site Tools


wiki:v2:building_libpixyusb_as_a_python_module_on_linux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
wiki:v2:building_libpixyusb_as_a_python_module_on_linux [2019/08/08 21:09]
pixycam [Errors]
wiki:v2:building_libpixyusb_as_a_python_module_on_linux [2019/08/08 21:11]
pixycam [Python2 vs Python3]
Line 93: Line 93:
 ===== Python2 vs Python3 ===== ===== Python2 vs Python3 =====
  
-This library will support both Python2 and Python3, but sometimes it will compile fine but provide ​import errors when you try to run one of the Python demos.  ​+This library will support both Python2 and Python3, but sometimes ​even though ​it will compile fine, you may still see import errors when you try to run one of the Python demos.  This may be because you are running a different version of Python than was used to compile the Pixy Python library.  ​
  
  
 If you want Python3 support, for example, make sure that your default "​python"​ is Python3 before running ''​build\_python\_demos.sh''​. ​ That is, make sure that Python3 is the version of Python that runs when you type in the "​python"​ command in your shell. ​ You can test this by running "​python --version"​ at the shell prompt. ​   If you want Python3 support, for example, make sure that your default "​python"​ is Python3 before running ''​build\_python\_demos.sh''​. ​ That is, make sure that Python3 is the version of Python that runs when you type in the "​python"​ command in your shell. ​ You can test this by running "​python --version"​ at the shell prompt. ​  
 +
  
 If it's not version 3 (or higher), change the default version to be Python3. ​ The recommended way to do this may depend on your Linux distribution. ​   If it's not version 3 (or higher), change the default version to be Python3. ​ The recommended way to do this may depend on your Linux distribution. ​  
  
wiki/v2/building_libpixyusb_as_a_python_module_on_linux.txt ยท Last modified: 2019/08/08 21:12 by pixycam