Install Arduino IDE from the Arduino website.
There are two ways to install Hardware package. It is recommended to use git version.
cd hardware mkdir esp8266com cd esp8266com git clone https://github.com/wemos/Arduino_D1.git esp8266
─┬ Arduino └─┬ hardware └─┬ esp8266com └─┬ esp8266 ├── bootloaders ├── cores ├── doc ├── libraries ├── package ├── tests ├── tools ├── variants ├── platform.txt ├── programmers.txt ├── README.md ├── boards.txt ├── LICENSE
cd esp8266/tools python get.py
into Additional Board Manager URLs field. You can add multiple URLs, separating them with commas.
After install hardware package, you will see WEMOS boards in the Tools→Board:xxx Choose your right board.