Template:PT3 PYTHON MAC TRM: Difference between revisions
From Phidgets Support
(Created page with "<div class="phd-slide-deck" data-deck="PT3_PYTHON_MAC_TRM"> <div class="phd-slide-deck-header"><h3>Language - Python</h3></div> <div class="phd-slides"> <div class="phd-slide"...") |
No edit summary |
||
Line 19: | Line 19: | ||
<h2>Requirements</h2> | <h2>Requirements</h2> | ||
<p>First, | <p>First, install <span>[https://www.python.org/downloads/ Python3]</span> if you haven't already.</p> | ||
<p> | <p> | ||
If you plan on using any USB Phidgets that use the HID stack, you'll need to install the | |||
<span>[https://www.phidgets.com/docs/OS_-_macOS Phidget drivers for MacOS]</span>. You can check which stack your USB Phidgets use by checking the 'USB Stack' | |||
in the product specifications. If all of your Phidgets use the PHIDUSB stack, you can skip installing the drivers. | |||
</p> | </p> | ||
</div> | </div> | ||
<div class="phd-slide"> | <div class="phd-slide"> | ||
<h2>Installing the Phidget Python Module</h2> | <h2>Installing the Phidget Python Module</h2> | ||
<p> | <p> | ||
To install the Phidgets Python Module, you'll need PIP, which is included in Python 3.4+ by default. To install the Phidget22 Python module with PIP, simply | |||
enter the | open the <b>Terminal</b> and enter the command: | ||
</p> | </p> | ||
<div class="phd-command-line"><code>python | <div class="phd-command-line"><code>python pip install Phidget22</code></div> | ||
</div> | </div> | ||