# Miniconda Setup

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.

## Installing on your machine.

So let's start off with going to this page:

{% embed url="https://docs.conda.io/en/latest/miniconda.html" %}

Here, we are in the main website on instructions on how to:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FoPzSKreIJT3ydUTQ9Oya%2Fimage.png?alt=media\&token=c03b1563-e81b-4511-9843-a624aaf395de)

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...) :disappointed: Sorry Mac users.

If we scroll down till we find this page:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FQAnhyzcKkcA4KNrGALCF%2Fimage.png?alt=media\&token=bb36bfc6-0093-438e-886d-e39d5d0eec18)

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:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FCdXUA6GPxVamwhrBjWYv%2Fimage.png?alt=media\&token=0962e16f-91f8-420c-a2a4-3598543475a5)

I'll tell you what to do in step by step:

1. Click Next.
2. Click I Agree.
3. Click Next (Unless if you want install for yourself).
4. Change location if you want to, but you can click Next anyways.
5. 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.

## Usage of Miniconda

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).

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FfZIbUrHVkuCbQmR3yLk4%2Fimage.png?alt=media\&token=10812774-07cf-4c80-b76f-9a906a1d8775)

It may not so hard, so go ahead and click on Anaconda Prompt.

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FT28d2yVPm7PWnGYeABdw%2Fimage.png?alt=media\&token=f5dc7b49-a609-4ac9-82d3-0f5b85eaa980)

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:

```
conda create -n *whatever name you want but i suggest tacotron2* python=3.7
```

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:

```
conda activate *the name that you wrote*
```

So basically what it does, it changes base environment in to your environment.

It even says in command line:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FWzIImUqlRB68tVGJmhTU%2Fimage.png?alt=media\&token=b6c4c65f-085f-4cb2-a067-b8a4b7987496)

To make sure if your python the same version as we are, type:

```
 python --version
```

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2F5bxtjH6XP0l7ckUZum92%2Fimage.png?alt=media\&token=3f038c2c-e5df-441a-b87b-b540f74c9361)

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:

```
nvidia-smi
```

Once that's done you should see an CUDA version right here:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2FvhXOMXMSfZrq5JC08gGH%2Fimage.png?alt=media\&token=ac45956b-3549-461e-bd62-c07e77f2205c)

Go to the PyTorch website:

{% embed url="https://pytorch.org/get-started/locally" %}

And you should see it something like this:

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2F1F1pNbMdGeFxC38yELhW%2Fopera_02_07_22_20_14_44.png?alt=media\&token=9e1888a8-040b-469b-b627-c329c8ccfdc9)

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...

![](https://183883283-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mbak3tQVLy_GLutiL_C%2Fuploads%2Fg7GMj2LCFxJ8PVG0PdKk%2Fimage.png?alt=media\&token=30cb0a2c-ce0d-4326-91f1-ffd8063db97b)

After that, type this:

```
pip install matplotlib tensorflow==1.15.2 numpy inflect librosa==0.8.1 scipy Unidecode pillow tqdm
```

Now it should be installing some dependencies.
