Home > Software design >  Why does py command result in errors when python3 command doesn't?
Why does py command result in errors when python3 command doesn't?

Time:04-11

I can't seem to find an answer or solution to this anywhere so if there is one please quote or link it here. When running python in the command line, if I do python3 -m pip install aiohttp it installs aiohttp just fine. However, if I do py -m pip install aiohttp it gives me install errors because it seems to have trouble "building wheel" and I have no idea why.

CodePudding user response:

You might have multiple python 3 versions installed. Wheel might be in one but not the other version. py uses the latest version installed. python3 might not. In cmd, type each command separately, in the first lines it will display the python version each command is using.

CodePudding user response:

python3 and py are different things, python3 is calling the python3 third-party library then after access it then -m then call pip module so it’s python3 -m pip then what we need to do is installing packages so it’s install then type what you need :)

so the whole command : python3 -m pip install aiohttp

that’s my answer :D

  • Related