---
description: >-
  You can follow it if you want to, but it's not finished unless if it's
  required.
---

# Python Clean Install

Alright, go to the [Python Page](https://python.org) and you should appear in a main page:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2F1WfYfdPAaKz10SQQlQYm%2Fimage.png?alt=media\&token=f5765a07-dafd-4070-8d62-d27819ff57a6)

Now in this main page, you gonna need is to download version 3.7.X and ONLY 3.7.X! NOT NEWEST VERSION, IT WON'T WORK IF YOU INSTALL IT AND YOU MIGHT GET ERRORS!

Alright now on this page go click downloads and select All releases (I REPEAT DO NOT CLICK 3.10.0 OR YOU MAY GET ERRORS):

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FSNDsH0iQ3hOUeJwNvc6l%2Fimage.png?alt=media\&token=08f0f847-14b3-405e-a506-cb2a22d3416f)

After that scroll down till you find 3.7.0 or 3.7.1

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FxQEpMUd305XKvCHlz3Zp%2Fimage.png?alt=media\&token=85d5b89b-f0b4-44d5-a7d2-711ec104ace0)

Now that you clicked on it, you'll be redirected to this page:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FokNFpoqDCP2Zmh7T51Ru%2Fimage.png?alt=media\&token=f36a9410-6e31-47b0-9774-5315ef6163cc)

Don't worry, it just shows some fixes and stuff, you should be able to scroll all the way down till you find downloads:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FkYrn5JreKRfJdFoKdrdR%2Fimage.png?alt=media\&token=5addc4e6-dc80-4e85-806c-0163c51dd575)

Now you may wanna select "Windows x86-64 executable installer", go ahead and select one and it'll download for you.

Now once it's finished downloading go ahead and open it and you will be greeted by this window:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FGaiCbd7A4sxNRP0KKPq0%2Fimage.png?alt=media\&token=02948814-145e-45ab-b7ce-ea33e5378a15)

One thing you should be doing is that you should check "Add Python 3.7 to PATH". This will help CMD to work properly with python.

Go ahead click install or if you want, you can customize installation.

Now wait till it's installed. And once that's done installing you should now go ahead and open the terminal or CMD precise.

(I'll be using Windows Terminal but you can use ether CMD or Powershell)

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FhZglM11Xnxn9Kgmci5sb%2Fimage.png?alt=media\&token=b0899ee6-c998-41dc-9ac1-42963d988323)

So you maybe asking, why should we use CMD or Powershell? so that we could test python commands.

So go ahead and type py:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FTFjnu7egxT3NFdoV3QnS%2Fimage.png?alt=media\&token=ec2c4866-ac85-4281-bc21-02165a638238)

If it happens to be a different version that means you installed incorrect version, if you want you can uninstall that and clear path of it or do the Miniconda setup.

Once you get the right version then congratulations.



Now what you need install is Pytorch and some dependencies.

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FaOjzDViTVMlkaW7O4heR%2Fimage.png?alt=media\&token=f5bf70e6-d983-4557-82b7-668144e3bb0d)

First off you need to check which CUDA version you have:

If you have CUDA Version 10.2 to 11.3, select CUDA 10.2

Otherwise if you have CUDA 11.3 or up then choose that one.

Other than that, you cannot install PyTorch if you have lower version. (sorry)

For myself I choose CUDA 11.3 so, select that one and copy the entire command, run inside terminal and press enter. Now this may take a while, so be patient...
