Run the source code in PyCharm
table of Contents
1. Operating environment
1.win10
2.Python3.7.5
3.PyCharm
2. Download the Home Assistant source code
Starting from a novice user, to becoming a master who transforms the space around him into a smart space at will.
The latest download address of Home Assistant source code: https://github.com/home-assistant/core
3. Open the Home Assistant source code
4. Install all required libraries
Open the Terminal in the lower left corner of PyCharm and enter pip install -r requirements.txt
Enter in the terminal. The
following errors may occur:
Solution: Download Microsoft Visual C++ 14.0 (installation package) and install it. Since you need points to download on this website, I put the tool in the network disk.
Link: https://pan.baidu.com/s/1JgAiLFpvirPOoPOjJ2HGcw extraction code :
If the yxoz link fails, please contact VX: 17614785487 Send it for free.
After the installation is complete, use the pip install -r requirements.txt
command to install the required libraries and everything is OK
5. Run the __main__.py file
Will complain about here means "not called 'atomicwrites' modules', using the pip install 模块名
installed modules.
For example pip install atomicwrites
, if you run it again after installation, a similar error will be reported, which are all solved in this way. There are about seven or eight modules.
Until the following content appears on the console, the operation is successful.
Open the browser and enter http://localhost:8123 and the registration page appears. So far, the source code has been successfully run in PyCharm.