How To Install Pyserial On Windows
If you are using a Mac or Linux computer, the Python is already installed. If you are using Windows, so yous will need to install it. In either case, you volition also need to install the PySerial library to permit advice with the Arduino.
Install Python on Windows
To install Python on Windows, download the installer from http://www.python.org/getit/.
This project was congenital using Python 2.7.three
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 Showtime card. All the same, nosotros are going to make a modify to Windows to allow yous to employ Python from the Command Prompt. You will need this to be able to install PySerial.
We are going to add together something to the PATH surround variable.
To practice this, you need to go to the Windows Command panel and detect the System Properties control. Then click on the button labelled "Environs Variables" and in the window that pops-up select "Path" in the lesser section (Organisation Variables). Click "Edit" and and then at the end of the "Variable Value" without deleting any of the text already there, add the text: ;C:\Python27
Don't forget the ";" before the new fleck!
To test that information technology worked okay, start a new Command Prompt (DOS Prompt) and enter the command "python". Y'all should see something like this:
Install PySerial
Any your operating system, download the .tar.gz install parcel for PySerial 2.half-dozen from https://pypi.python.org/pypi/pyserial This volition requite you a file chosen: pyserial-2.six.tar.gz If you are using windows you lot demand to uncompress this into a folder. Unfortunately, it is not a normal zip file, and then you may need to download a tool such as vii-zip (http://world wide web.vii-zip.org/). If y'all are using a Mac or Linux computer, so open a Concluding session, 'cd' to wherever you downloaded pyserial-2.6.tar.gz then issue the following command to unpack the installation folder.
$ tar -xzf pyserial-two.half dozen.tar.gz
$ tar -xzf pyserial-ii.6.tar.gz
The rest of the procedure is the same any your operating system. Use you Comamnd Prompt / Terminal session and "cd" into the pyserial-two.half dozen folder, then run the command:
sudo python setup.py install
sudo python setup.py install
This guide was first published on Feb 28, 2013. It was concluding updated on Feb 28, 2013.
This page (Installing Python and PySerial) was last updated on Jun 25, 2022.
Text editor powered by tinymce.
Source: https://learn.adafruit.com/arduino-lesson-17-email-sending-movement-detector/installing-python-and-pyserial
Posted by: mataothed1979.blogspot.com
0 Response to "How To Install Pyserial On Windows"
Post a Comment