CUDA installation failed

I have to install CUDA 9.0 for Machine Learning. I have installed Python 3, Anaconda, PyCharm, and VS 2017 Community(Only root files, not any workloads installed). There is only CUDA 9.0 that needs to be installed. In first installation of CUDA 9.0 I get an information which says that there is no Visual Studio installed. I checked the checkbox and started to progress. It failed. Then I installed VS 2017 Community without any workloads and tried install CUDA 9.0 again. I didn’t get information for VS, started progress, failed.

Should I install any workload which means about C++?
Should I give up installing CUDA 9.0?
What should I do? Work with processor? I want speed.

Hardware:
Nvidia GeForce GTX1050 Ti 4GB VRAM (Version: 398.11 - Updated)
8 GB RAM
Directx 12
Windows 10 64 bit Education
Intel Core i7-7700HQ 2.80 GHz (8 CPUs)