@@ -83,38 +83,34 @@ installer or download the distribution zip file and extract it.
83
83
The Makefile also delegates resetting the board to a short Python program.
84
84
You'll need to install [ ` pySerial ` ] ( https://pypi.python.org/pypi/pyserial ) to use it though.
85
85
86
- On most systems you should be able to install it using either ` pip ` or ` easy_install ` .
86
+ On most systems you should be able to install it using either ` pip3 ` or ` easy_install3 ` .
87
87
88
88
``` sh
89
- pip install pyserial
89
+ pip3 install pyserial
90
90
91
91
# or if you prefer easy_install
92
92
93
- easy_install -U pyserial
93
+ easy_install3 -U pyserial
94
94
```
95
95
96
96
If you prefer to install it as a package, then you can do that as well.
97
97
98
98
On Debian or Ubuntu:
99
99
100
100
``` sh
101
- apt-get install python -serial
101
+ apt-get install python3 -serial
102
102
```
103
103
104
104
On Fedora:
105
105
106
106
``` sh
107
- yum install pyserial
108
-
109
- # or on Fedora 22+
110
-
111
- dnf install pyserial
107
+ dnf install python3-pyserial
112
108
```
113
109
114
110
On openSUSE:
115
111
116
112
``` sh
117
- zypper install python -serial
113
+ zypper install python3 -serial
118
114
```
119
115
120
116
On Arch:
@@ -123,15 +119,16 @@ On Arch:
123
119
sudo pacman -S python-pyserial
124
120
```
125
121
126
- On Mac using MacPorts :
122
+ On macOS using Homebrew (one can install to System Python but this is not recommend or good practice) :
127
123
128
124
``` sh
129
- sudo port install py27-serial
125
+ brew install python
126
+ pip3 install pyserial
130
127
```
131
128
132
129
On Windows:
133
130
134
- You need to install Cygwin and its packages for Make, Perl, Python2 and the following Serial library.
131
+ You need to install Cygwin and its packages for Make, Perl, Python3 and the following Serial library.
135
132
136
133
Assuming you included Python in your Cygwin installation:
137
134
@@ -141,15 +138,15 @@ Assuming you included Python in your Cygwin installation:
141
138
4 . build and install Python module:
142
139
143
140
```
144
- python setup.py build
145
- python setup.py install
141
+ python3 setup.py build
142
+ python3 setup.py install
146
143
```
147
144
148
145
Alternatively, if you have setup Cygwin to use a Windows Python installation,
149
146
simply install using pip:
150
147
151
148
```
152
- pip install pyserial
149
+ pip3 install pyserial
153
150
```
154
151
155
152
Arduino-Makefile should automatically detect the Python installation type and
0 commit comments