how did you install it?
If you booted from the windows 10 setup media and did a clean install - windows 10 will not activate..
You must run the setup.exe from within windows 8.1 to perform an upgrade installation - and activate..
Then once your PC has had the activation recorded - you can then clean install windows 10
You MUST upgrade first to get the activation recorded