diff options
| author | Simon John <git@the-jedi.co.uk> | 2020-08-04 23:19:49 +0100 |
|---|---|---|
| committer | Simon John <git@the-jedi.co.uk> | 2020-08-04 23:19:49 +0100 |
| commit | 207253abc6ec81112abf0a64a8bf68e227528d64 (patch) | |
| tree | b289b1a3ad4d2793e38e5072353b9f5484f98a7b /README.md | |
| parent | 6f786a96b0acfb0c9b2d2f4e39911d2803088729 (diff) | |
Rebased python3 branch with some changes from tuna-f1sh@87d5241
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 29 |
1 files changed, 13 insertions, 16 deletions
@@ -83,14 +83,14 @@ installer or download the distribution zip file and extract it. The Makefile also delegates resetting the board to a short Python program. You'll need to install [`pySerial`](https://pypi.python.org/pypi/pyserial) to use it though. -On most systems you should be able to install it using either `pip` or `easy_install`. +On most systems you should be able to install it using either `pip3` or `easy_install3`. ```sh -pip install pyserial +pip3 install pyserial # or if you prefer easy_install -easy_install -U pyserial +easy_install3 -U pyserial ``` If you prefer to install it as a package, then you can do that as well. @@ -98,23 +98,19 @@ If you prefer to install it as a package, then you can do that as well. On Debian or Ubuntu: ```sh -apt-get install python-serial +apt-get install python3-serial ``` On Fedora: ```sh -yum install pyserial - -# or on Fedora 22+ - -dnf install pyserial +dnf install python3-pyserial ``` On openSUSE: ```sh -zypper install python-serial +zypper install python3-serial ``` On Arch: @@ -123,15 +119,16 @@ On Arch: sudo pacman -S python-pyserial ``` -On Mac using MacPorts: +On macOS using Homebrew (one can install to System Python but this is not recommend or good practice): ```sh -sudo port install py27-serial +brew install python +pip3 install pyserial ``` On Windows: -You need to install Cygwin and its packages for Make, Perl, Python2 and the following Serial library. +You need to install Cygwin and its packages for Make, Perl, Python3 and the following Serial library. Assuming you included Python in your Cygwin installation: @@ -141,15 +138,15 @@ Assuming you included Python in your Cygwin installation: 4. build and install Python module: ``` -python setup.py build -python setup.py install +python3 setup.py build +python3 setup.py install ``` Alternatively, if you have setup Cygwin to use a Windows Python installation, simply install using pip: ``` -pip install pyserial +pip3 install pyserial ``` Arduino-Makefile should automatically detect the Python installation type and |
