💻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:

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

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.

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:

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

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:

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:

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

 python --version

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:

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:

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

Now it should be installing some dependencies.

Last updated