Template:SBC Python Tabber: Difference between revisions
(Created page with "<tabber> Using PIP= ====Using PIP==== The recommended way to install the '''Phidget22 Python module''' is using the '''PIP package manager'''. <br><br> Python versions '''2.7....") |
No edit summary |
||
Line 43: | Line 43: | ||
Copy the [{{SERVER}}/downloads/phidget22/libraries/any/Phidget22Python.zip Python Libraries] onto a USB key. Unpack the zip file into a folder on the USB key. Insert the key into the SBC. | Copy the [{{SERVER}}/downloads/phidget22/libraries/any/Phidget22Python.zip Python Libraries] onto a USB key. Unpack the zip file into a folder on the USB key. Insert the key into the SBC. | ||
You will have to figure out where the USB key (and the Phidget Python library folder) is now located | You will have to figure out where the USB key (and the Phidget Python library folder) is now located. Next, run the following commands (be sure to modify the usb directory number if necessary): | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
cd /media/usb0/ | cd /media/usb0/ |
Latest revision as of 22:03, 8 March 2021
Using PIP
The recommended way to install the Phidget22 Python module is using the PIP package manager.
Python versions 2.7.9+ and 3.4+ include PIP by default.
To install the Phidget22 Python module with PIP, simply run the command:
python -m pip install Phidget22
Manual Install Using the Internet
First, install wget and unzip:
apt-get install wget
apt-get install unzip
Next, copy the web link address for the Python Libraries and use it in the following command (right click to copy into a terminal):
wget http://copied_link
The Phidget Python libraries should now be downloaded in the folder you ran the previous command in. The next step is to unzip the file:
unzip filename
Finally, change directories to the unzipped folder:
cd /path/to/unzipped/folder
and install the Phidget Python libraries:
python setup.py install
Using a USB Key
Copy the Python Libraries onto a USB key. Unpack the zip file into a folder on the USB key. Insert the key into the SBC.
You will have to figure out where the USB key (and the Phidget Python library folder) is now located. Next, run the following commands (be sure to modify the usb directory number if necessary):
cd /media/usb0/
python setup.py install