Py Serial
Py Serial
Run 7-Zip (Start -> All Programs -> 7-Zip -> 7-Zip File Manager).
Single click on the "pyserial-2.6.tar" file and click the "Extract" button at the top of the window.
When asked where to put the file, specify c:\Python27\Lib\site-packages\pyserial-2.6
Open a command window (Start -> All Programs -> Accessories -> Command Prompt) and type
into the command line: cd c:\Python27\Lib\site-packages\pyserial-2.6
If you are using a Mac or Linux computer, the Python is already installed. If you are using
Windows, then you will need to install it. In either case, you will also need to install the PySerial
library to allow communication with the Arduino.
This project was built using Python 2.7.3. There are some reported problems with PySerial on
Windows, using Python 3, so stick to Python 2.
Once Python is installed, you will find a new Program Group on your Start menu. However, we
are going to make a change to Windows to allow you to use Python from the Command Prompt.
You will need this to be able to install PySerial.
To test that it worked okay, start a new Command Prompt (DOS Prompt) and enter the command
python. You should see something like this:
Install PySerial
Whatever your operating system, download the .tar.gz install package for PySerial 2.6 from
https://pypi.python.org/pypi/pyserial
If you are using windows you need to uncompress this into a folder. Unfortunately, it is not a
normal zip file, so you may need to download a tool such as 7-zip (http://www.7-zip.org/).
If you are using a Mac or Linux computer, then open a Terminal session, 'cd' to wherever you
downloaded pyserial-2.6.tar.gz and then issue the following command to unpack the installation
folder.
Copy Code
The rest of the procedure is the same whatever your operating system. Use you Comamnd
Prompt / Terminal session and cd into the pyserial-2.6 folder, then run the command:
Copy Code