Installing python 3.x and pip on Windows - ParthBibekar/Welearn-bot GitHub Wiki

This is a quick guide to installing python 3.x along with pip on Windows.

  • Go to the python downloads page for Windows, and click on the "Latest Python 3 Release link".
  • Scroll down to files, then click and install the Windows installer (32 bit or 64 bit, depending on your system architecture).
  • While installing, make sure to click on add to PATH. Also, note down the folder in which python is installed (you may even want to set it to C:\Users\USERNAME\python).
  • Open the command prompt, either by Run > cmd.exe or by simply typing cmd and hitting enter in the Windows search menu.
  • Type in python -V and hit enter. You should see the version number, in the form Python 3.x.x. Otherwise, execute cd C:\Users\USERNAME\python (make sure this is the same folder where you installed python), and try again.
  • Download get-pip.py, move it to the same folder you are in in the command prompt, and execute python get-pip.py.
  • Execute pip -V or python -m pip -V. You should see the version number. This confirms that the installation has been successful.

To install welearn_bot, you may run

python -m pip install --upgrade welearn-bot-iiserkol

You should now be able to run

welearn_bot whoami

in the command prompt and be prompted for your WeLearn username and password.

Note that the script gets installed in C:\Users\USERNAME\python\Scripts\welearn_bot, so you could navigate to the python folder and run python Scripts\welearn_bot if your PATH doesn't seem to be configured correctly.