Skip to main content

How to install Miniconda Environment in Linux

Download the latest Miniconda version from the official download page.

$ wget https://repo.anaconda.com/miniconda/Miniconda3-py39_4.9.2-Linux-x86_64.sh

Go to the location where you downloaded the Miniconda installer and check the integrity of the downloaded file with SHA-256:

$ sha256sum Miniconda3-py39_4.9.2-Linux-x86_64.sh

You will see an output like below:

536817d1b14cb1ada88900f5be51ce0a5e042bae178b5550e62f61e223deae7c  Miniconda3-py39_4.9.2-Linux-x86_64.sh

Compare the above hash value with the official Hashes for Miniconda. If the hash value of the locally downloaded installer file matches with the official hash, it is a legitimate file and you can start the installation!

To install Miniconda on Linux, run:

$ bash Miniconda3-py39_4.9.2-Linux-x86_64.sh 

You should include the bash command regardless of the shell you're using.

Press ENTER to continue installation:

Welcome to Miniconda3 py39_4.9.2

In order to continue the installation process, please review the license agreement.

Please, press ENTER to continue                  

Next, you will see the license agreement. Press ENTER key to scroll to the bottom of the license terms and type “Yes” and press to agree the license agreement and continue installation.

Do you accept the license terms? [yes|no]

 [no] >>> yes

Next the installer will prompt where do you want to install Miniconda. You will be given three choices. Press ENTER to accept the default install location i.e. your $HOME directory. If you don't want to install in the default location, press CTRL+C to cancel the installation or mention an alternate installation directory.

I go with the default installation path, which is /var/home/sk/miniconda3 in my case.

[...]

Miniconda3 will now be installed into this location:

 /var/home/sk/miniconda3

 Press ENTER to confirm the location

 Press CTRL-C to abort the installation

 Or specify a different location below 

 [/var/home/sk/miniconda3] >>> 

If you've chosen the default location, the installer will display “PREFIX=/var/home/<user>/miniconda3” and continue the installation. It may take a few minutes to complete.


Finally, you will be prompted to initialize Miniconda. It is recommended to initialize it, so just type Yes and press ENTER to continue.


 [...]

 Preparing transaction: done

 Executing transaction: done

 installation finished.

 Do you wish the installer to initialize Miniconda3

 by running conda init? [yes|no]

 [no] >>> yes


Once the Miniconda installation is completed, you will see a thank you note at the end.


[...]

==> For changes to take effect, close and re-open your current shell. <==

 If you'd prefer that conda's base environment not be activated on startup, 

    set the auto_activate_base parameter to false: 

 conda config --set auto_activate_base false

 Thank you for installing Miniconda3!


For the installation to take effect, close and re-open your Terminal. Alternatively, run the following command to effect the changes immediately:

$ source ~/.bashrc

You will now see the prefix (base) in front of your shell prompt. It means that the conda's base environment is activated.

(base) [[email protected] ~]$ 

If you don't want the conda's base environment activated by default on system startup and wish to run conda from anywhere, deactivate it using command:

$ conda config --set auto_activate_base false

Run the following command to take effect the changes immediately:

$ source ~/.bashrc

From now on, you have to manually activate conda environment using command:

$ conda activate

To deactivate conda environment:

$ conda deactivate

Comments

Popular posts from this blog

Cara Disable Antimalware Service Executable di Windows 10

Disadari atau tidak, Windows 10 (dan juga windows-windows lainnya) hadir dengan banyak sekali aplikasi bloatware (aplikasi yang tidak perlu-perlu amat dimiliki oleh end user). Contohnya, adalah aplikasi yang seharusnya sudah tergantikan fungsinya oleh antivirus, seperti Antimalware Service Executable . Aplikasi ini dicurigai membuat Windows 10 mengalami inefisiensi memori/RAM, memakan resource yang tinggi, dengan Load yang tinggi (tanpa limit terkadang). Nah, berikut adalah cara men-disable nya: Tekan tombol Windows + I untuk membuka apliaksi Windows Setting. Pilih icon menu Update and Security Pilih lagi menu disamping kiri Windows Security Pada jendela baru yang muncul, ada pilihan Virus & Threat protection Klik ini Lalu matikan proses Real-time protection tersebut. Dengan Regedit. Buka dialog regedit, Windows + R dan ketik ‘regedit’ Cari Folder regedit ini HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows Defender Buat sebuah DWORD baru dengan klik kanan

Setup Debian 11 Official Repository In sources.list (/etc/apt/sources.list)

When you install Debian 11 using a DVD, the OS installer sets the DVD as the source for getting packages for your system if you didn't choose to scan for network mirrors. Due to this reason, the system would ask you to insert a DVD if the disc is not present in the DVD drive when you try to install any software.  Also, the packages on DVD may not be the latest release.  So, we need to get the packages from the Internet. Media change: please insert the disc labeled 'Debian GNU/Linux 11.0.0 _Bullseye_ - Official amd64 DVD Binary-1 20210814-10:04' in the drive '/media/cdrom/' and press [Enter] The /etc/apt/sources.list file with DVD as a source would look something like below. # deb cdrom:[Debian GNU/Linux 11.0.0 _Bullseye_ - Official amd64 DVD Binary-1 20210814-10:04]/ bullseye contrib main deb cdrom:[Debian GNU/Linux 11.0.0 _Bullseye_ - Official amd64 DVD Binary-1 20210814-10:04]/ bullseye contrib main deb http://security.debian.org/debian-security bullseye-security

Cara Membuat Live USB VMWare ESXi 6.7 di Linux (Debian/CentOS)

VMWare ESXi 6.7 menyediakan satu installer dalam format CDROM ISO. Dalam tutorial kali ini kita akan membuat sebuah live USB dengan menggunakan sistem Linux, misalnya Debian dan CentOS. Untuk keperluan tutorial kali ini silakan pastikan sudah ada download installer ISO ESXi 6.7 dari https://my.vmware.com Siapkan satu USB Flashdisk dengan kapasitas lebih dari 1GB. Format dalam satu partisi dengan tool yang biasa dipakai dalam format partisi FAT32. Misal dengan FDISK: [sourcecode] fdisk /dev/sdX [/sourcecode] format ke FAT32: [sourcecode]mkfs.fvat -F 32 -n USB /dev/sdX1[/sourcecode] selanjutnya, kita buat USB tersebut bootable dengan syslinux. Bagi linuxnya belum ada syslinux, silakan install dulu (apt-get install syslinux atau yum install syslinux).