[Tutor] python3 is not recognized

Mats Wichmann mats at wichmann.us
Wed Sep 4 13:43:57 EDT 2019


On 9/4/19 4:11 AM, Joffrey Schilling wrote:
> Hi
> 
> 
> I am trying to get a robot to follow and unfollow instagram users.
> 
> After downloading Atom and the robot at https://github.com/instabot-py/instabot.py I ve coded :
> C:\Users\Asus\Documents\Logiciels\instabot.py-master
> pip3 install --upgrade pip
> pip3 install -e .
> python3 run.py
> 
> Then fort he last line I ve got : 'python3' is not recognized as an internal or external command.
> Could you help me please?

Do you have Python 3 installed?

Most Windows Python problems are path related, assuming you've installed
Python at all. If it isn't installed, that's the reason for your error.
If it is installed, it's paths.  On windows, the command usually doesn't
end up named "python3" even if it is Python 3, so the page you're
looking at may have been written from a Linux viewpoint, and you'll have
to mentally adjust.

On Windows you should, when you install Python, let it install the
Python launcher, a tool letting you run Python with a single command
even if you have several versions, if Python was installed without also
setting it in the system PATH environment variable, if it got installed
in a non-standard place, etc.

Your steps above should then look like this:


py --version

:: stop there if you don't get an expected answer, things aren't
installed right. Fix, restart.

py -m pip install --upgrade pip
py -m pip install -e .
py run.py


In other words, use "py" wherever docs say "python" or "python3".
Use "py -m pip [commands]" wherever docs say "pip [commands]" or "pip3
[commands]".




More information about the Tutor mailing list