Cannot install homeassistant (cann't find ciso8601)

hi all,
this is my very first try installing Hassio.
As documentation suggests, decided to start on Windows 10 (I’m thinking to do it on Raspberry PI 4 in future).
Typing “pip3 install homeassistant”, I see:

======================================================
    **Running setup.py install for ciso8601 ... error**
    ERROR: Command errored out with exit status 1:
     command: 'd:\programmi\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Sauro\\AppData\\Local\\Temp\\pip-install-oeggh0vs\\ciso8601\\setup.py'"'"'; __file__='"'"'C:\\Users\\Sauro\\AppData\\Local\\Temp\\pip-install-oeggh0vs\\ciso8601\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Sauro\AppData\Local\Temp\pip-record-quln7dm6\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\programmi\python37\Include\ciso8601'
         cwd: C:\Users\Sauro\AppData\Local\Temp\pip-install-oeggh0vs\ciso8601\
    Complete output (15 lines):
    running install
    running build
    running build_py
    package init file 'ciso8601\__init__.py' not found (or not a regular file)
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\ciso8601
    copying ciso8601\__init__.pyi -> build\lib.win-amd64-3.7\ciso8601
    copying ciso8601\py.typed -> build\lib.win-amd64-3.7\ciso8601
    running build_ext
    building 'ciso8601' extension
    creating build\temp.win-amd64-3.7
    creating build\temp.win-amd64-3.7\Release
    cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DCISO8601_VERSION=2.1.3 -Id:\programmi\python37\include -Id:\programmi\python37\include -ID:\programmi\VisualStudio\VC\Include "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.17763.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" /Tcmodule.c /Fobuild\temp.win-amd64-3.7\Release\module.obj
    error: command 'cl.exe' failed: No such file or directory
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'd:\programmi\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Sauro\\AppData\\Local\\Temp\\pip-install-oeggh0vs\\ciso8601\\setup.py'"'"'; __file__='"'"'C:\\Users\\Sauro\\AppData\\Local\\Temp\\pip-install-oeggh0vs\\ciso8601\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Sauro\AppData\Local\Temp\pip-record-quln7dm6\install-record.txt' --single-version-externally-managed --compile --install-headers 'd:\programmi\python37\Include\ciso8601' Check the logs for full command output.

======================================================

Already tried installation of Visual C++ 14.0, already tried installation of 3.8.2 and 3.7.7 versions, non more ideas.
Pelase, somebody can help me?

You’re not installing Hass.io - you’re installing Home Assistant Core

However, Windows is not a suggested platform. We suggest not Windows :wink:

    error: command 'cl.exe' failed: No such file or directory

That’s your problem though, no cl.exe

Thank you for answer.
Waiting for Raspberry, I’d like to test something on my Windows PC.
Isn’t there any solution to find cl.exe for Windows?
Reading documentation, I could theoretically use HomeAssistant for testing purpose

The 4 first one came with visual studio 2019 ( the community edition is a free download)
The fifth one I don’t know, but i think also.

Thank you VERY MUCH!!
Installing VisualStudio 2019 solved the problem.
It seems to be too much for using Pyton but I’m happy becouse I’ve done 1 step more

I sang victory too soon!!
Trying with “py -m homeassistant --open-ui” I fall into error:

> 2020-04-09 17:08:05 INFO (SyncWorker_2) [homeassistant.util.package] Attempting install of aiohttp_cors==0.7.0
> 2020-04-09 17:08:08 INFO (MainThread) [homeassistant.setup] Setting up http
> 2020-04-09 17:08:08 ERROR (MainThread) [homeassistant.setup] Error during setup of component http
> Traceback (most recent call last):
>   File "D:\programmi\Python38\lib\site-packages\homeassistant\setup.py", line 170, in _async_setup_component
>     result = await component.async_setup(  # type: ignore
>   File "D:\programmi\Python38\lib\site-packages\homeassistant\components\http\__init__.py", line 143, in async_setup
>     server = HomeAssistantHTTP(
>   File "D:\programmi\Python38\lib\site-packages\homeassistant\components\http\__init__.py", line 232, in __init__
>     setup_cors(app, cors_origins)
>   File "D:\programmi\Python38\lib\site-packages\homeassistant\components\http\cors.py", line 26, in setup_cors
>     import aiohttp_cors
> ModuleNotFoundError: No module named 'aiohttp_cors'

Please, help me, I am at the very first try

By now I guess you are setup on a Pi, but just letting you know “ModuleNotFoundError” issues can often be solved by manually installing the module with the pip install command. About a month ago I consolidated my existing HA Core onto a Windows 7 laptop and retired my aging Pi 2B. I was pleasantly surprised when the whole thing came up on Windows, and in my case it is snappier / faster (no doubt due to hardware differences). I don’t remember coming across the missing aiohttp_cors error you had above, but my Google Nest integration just needed “pip install google-cloud-pubsub” to get going again. As others have pointed out, Windows is not the preferred HA Core platform (and not every integration works on Windows), but in some cases like mine it still has a place in the HA world :slight_smile: Unlike Debian Buster you can get Python 3.8 installed from binaries too. One thing to watch out for when upgrading versions on Windows - make sure to shut down HA first since Windows doesn’t allow replacing files while still in use! I just updated to Home Assistant 2020.12.2 with no issues on Windows.

Thank you, very much but I’ve choosen to buy a raspberry pi4 many months ago and everything has gone all right on first shot