-
Notifications
You must be signed in to change notification settings - Fork 33
Source setup Windows
Erriez edited this page Apr 17, 2018
·
1 revision
Download and install Python 3.6.4 or later for Windows into C:\Python36
.
Open a command prompt (Windows key
+ R
> Type cmd
[ENTER]
) and start Python:
C:\Users\User>cd c:\Python36
c:\Python36>python --version
Python 3.6.4
Install pyserial:
c:\Python36> python -m pip install pyserial
Note: Only the commandline relay versions can be started, such as:
> C:\Python36>python modbus.py --help
> C:\Python36>python relay.py --help
> C:\Python36>python examples/getting_started.py
Download and install GIT client for Windows.
Clone GIT project
> mkdir projects
> cd projects
> git clone https://github.com/Erriez/R421A08-rs485-8ch-relay-board.git
Create virtualenv with Python3
> cd R421A08-rs485-8ch-relay-board
> c:\python36\Scripts\virtualenv.exe venv
Activate virtualenv
> venv\Scripts\activate.bat
Install Python requirements in virtualenv
(venv) > python -m pip install -r requirements.txt
Start commandline scripts
(venv) > python ./modbus.py --help
(venv) > python ./relay.py --help
Start GUI
(venv) > python ./relay_gui.py
(venv) > python ./modbus_gui.py
(venv) > python examples/wxpython_toggle.py