There are multiple threads on these issues. Typically you either do not have the correct Google pixel drivers installed, or it could be the data cable that is faulty or only suitable for charging purposes without data transfer.
It's a process of elimination. With the correct drivers, you should be able to test the link using commands such as adb devices, adb devices reboot bootloader. There is a fastboot one to, but don't recall just now what it is.