StormSurge95
StormSurge95

Reputation: 55

Why does py command result in errors when python3 command doesn't?

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.

Upvotes: 1

Views: 626

Answers (2)

user18627525
user18627525

Reputation:

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

Upvotes: 1

Colin Curtain
Colin Curtain

Reputation: 267

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.

Upvotes: 2

Related Questions