I received this error too, I reinstalled a fresh version of all requirements (from thdirections linked) at least 4 times last night and could not get it working.
I ended up having to install platform IO which I do not understand, but at least I got it working!