💻Miniconda Setup
Last updated
Last updated
If you had installed wrong version nor even you haven't installed python yet and you want multiple python versions then follow my guide on how to install Miniconda.
So let's start off with going to this page:
Here, we are in the main website on instructions on how to:
If we scroll down till we find this page:
Now, all we need to get is Python 3.7 AND 64-bit (because, I mean who wants to use 32-bit anyways.)
You will be greeted by the installer itself:
I'll tell you what to do in step by step:
Click Next.
Click I Agree.
Click Next (Unless if you want install for yourself).
Change location if you want to, but you can click Next anyways.
This is optional but check Add Miniconda3 to the PATH, otherwise click Install.
Now wait till installs.
Once that's done, you can uncheck these two and click finish.
So, now that you got installed, it's time to go ahead and try to use it.
But awesome, where and how will I use Miniconda?
That's a good question.
The real deal is that you gonna have to open it trough Start Menu on your Windows (Or use Terminal if you are in Linux).
It may not so hard, so go ahead and click on Anaconda Prompt.
Welcome to the Anaconda Terminal (or Miniconda3, whatever is.)
Right now you need to make an virtual environment for it. So one thing you should be doing is that installing python 3.7.X and all that stuff. (Do not install new versions or older, they don't work. ONLY INSTALL 3.7.X Or you may get an errors.)
So to make a virtual environment just type like this:
So let's go one by one:
conda - is basically command you should use
create - this creates an environment
-n - is the name enviroment you should name in to
python=3.7 - this will force to install python 3.7.X so make sure you write that (this may work on latest version too don't worry about it)
Now that you have to wait until it's finished.
Once you have done, go ahead and type this command:
So basically what it does, it changes base environment in to your environment.
It even says in command line:
To make sure if your python the same version as we are, type:
If you have 3.7 version then congratulations you can continue on, if not, go ahead try again.
Lastly but not at least, you should be able to install PyTorch and other dependencies. Which we definitely required for this or else you may run in to some errors.
To do this, you first need to check what cuda version you have, open up cmd and run this command:
Once that's done you should see an CUDA version right here:
Go to the PyTorch website:
And you should see it something like this:
Now, remember that CUDA version that we did? here's what you should do:
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 conda terminal and press enter. Now this may take a while, so be patient...
After that, type this:
Now it should be installing some dependencies.
And to be frankly enough... it's even available for Mac and Linux, but we'll focus on Windows okay? Works Linux too for training but for Macs... I don't think so... Synthesis will work but training is probably not... (maybe...) Sorry Mac users.