Welcome to my Posts on Information Technology.
Contact here, for any trouble with your computer
Email to: masudrana2003@gmail.com.
Disclaimer: Opinions expressed here are personal and cannot in any way be associated or reflects those of my employer.
In addition, my thoughts and opinions change from time to time I consider this a necessary consequence of having an open mind.
Steps to Install Anaconda on Windows Ubuntu Terminal
Setting up Anaconda on the Windows Subsystem for Linux (WSL) involves enabling WSL on Windows 11, installing a Linux distribution (like Ubuntu), and then installing the Linux version of the Anaconda distribution within that Linux environment
Install WSL (Ubuntu for Windows - can be found in Windows Store). I recommend the latest version (I'm using 25.04) because there are some bugs they worked out during
Prerequisites
Windows 11 with WSL Enabled: Ensure WSL is installed and enabled. You can do this by opening PowerShell or Command Prompt as an administrator and running wsl --install. You may need to restart your computer after installation.
A Linux Distribution: Install a distribution like Ubuntu from the Microsoft Store.
Internet Connection: Required to download the Anaconda installer.
Step-by-Step Guide
Open your WSL terminal. Search for your installed Linux distribution (e.g., Ubuntu) in the Windows Start menu and open it. A terminal window will open.
Update your Linux environment. It is good practice to update your package lists before installing new software:
bash
sudo apt update && sudo apt upgrade -y
Download the Anaconda installation script. Use wget to download the latest Anaconda installer script for Linux (64-bit x86 architecture). You can find the latest version link on the Anaconda website.
(Note: The version number in the command might change over time; check the Anaconda website for the most current file name).
Run the installation script. Execute the downloaded script using bash:
bash
bash anaconda_installer.sh
Follow the installation prompts.
Press Enter to review the license agreement.
Type yes to accept the license terms.
Press Enter to accept the default installation location (/home/your_username/anaconda3), or specify a different path.
When prompted "Do you wish the installer to initialize Anaconda3...?", type yes. This modifies your shell configuration (e.g., ~/.bashrc) to automatically activate the conda base environment when you open the terminal.
Close and reopen your terminal. For the changes to the shell configuration to take effect, you must close the current terminal window and open a new one. You should see (base) in your command prompt, indicating that Anaconda is active.
Verify the installation. Run a simple command to confirm that Anaconda and Conda are working correctly:
bash
conda list
If successful, a list of installed packages will appear.
Finalize and Verify
To apply the changes, reload your shell or restart the terminal.
Source your profile: Run source ~/.bashrc to refresh your configuration.
Verify installation: Type conda list. If you see a list of packages, the setup was successful.
Manage environments: You can now create your first environment using:
bash
conda create -n myenv python=3.10
Manage environments:
You can now create your first environment using:
bash
conda create -n MasudRana ## My Environment Name
Activate Conta environment:
bash
conda activate MasudRana
You have now successfully set up Anaconda on WSL on Windows 11. You can start creating environments and managing packages using conda commands.
One can access the power of both Windows and Linux at the same time on a Windows machine. The Windows Subsystem for Linux (WSL) lets developers install a Linux distribution (such as Ubuntu, OpenSUSE, Kali, Debian, Arch Linux, etc) and use Linux applications, utilities, and Bash command-line tools directly on Windows, unmodified, without the overhead of a traditional virtual machine or dualboot setup.
Prerequisites
You must be running Windows 10 version 2004 and higher (Build 19041 and higher) or Windows 11 to use the commands below.
To setup Linux on Windows subsystem you must first Turn On below windows features from "Turn Windows Features on or off"
Windows Subsystem for Linux
Virtual Machine Platform
Install WSL command
You can now install everything you need to run WSL with a single command. Open command prompt or PowerShell in administrator mode by right-clicking and selecting "Run as administrator", enter the wsl --install command, then restart your machine.
Open PowerShell and run:
PowerShell
> wsl --install
You may be prompted to grant permission to continue the installation.
You may also need to reboot your machine before installing and running any Ubuntu distro.
Step-by-step Installation for your preferred Linux distribution
Open PowerShell Or Command Prompt as Administrator:
Right-click the Start button and select Windows Terminal (Admin) or PowerShell (Admin)
Run the Installation Command:
Install specific versions of Ubuntu on WSL
There are multiple ways of installing Ubuntu distros on WSL. The best method depends on your specific requirements.
Method 1: Install Ubuntu from the terminal
In a PowerShell terminal, run wsl--list--online to see a list of all available distros and versions:
Install a specific Ubuntu distro using a NAME from the output:
> wsl --list --online
The following is a list of valid distributions that can be installed.
Install using 'wsl --install -d <Distro>'.
NAME FRIENDLY NAME
AlmaLinux-8 AlmaLinux OS 8
... ...
Ubuntu Ubuntu
Ubuntu-25.04Ubuntu 25.04 LTS Ubuntu-24.04 Ubuntu 24.04 LTS
archlinux Arch Linux
kali-linux Kali Linux Rolling
... ...
Ubuntu-18.04 Ubuntu 18.04 LTS
Ubuntu-20.04 Ubuntu 20.04 LTS
Ubuntu-22.04 Ubuntu 22.04 LTS
...
Install a specific Ubuntu distro using a NAME from the output:
> wsl --install -d Ubuntu-24.04
Method 2: Download and install from the Ubuntu archive
The image has a .wsl extension and can be installed in two ways:
Double-clicking the downloaded file
Running wsl--install--from-file<image>.wsl in the download directory
You do not need access to the Microsoft Store to use this installation method and the images can be self-hosted on an internal network.
Method 3: Install from the Microsoft Store
If you prefer a graphical method of installation, open the Microsoft Store on your Windows machine and search for “Ubuntu”.
Go to the page of an available Ubuntu distribution and click Get to start the installation.
Starting an Ubuntu instance
During installation of an Ubuntu distro on WSL, you are asked to create a username and password specific to that instance. This also starts an Ubuntu session and logs you in.
After installation, you can open Ubuntu instances by:
Running the wsl-d<Distro> command in PowerShell
Opening the dropdown in Windows Terminal
Searching for them in the Window’s search bar
At any point, you can list the Ubuntu distros that you can start with wsl-l-v.
Starting an instance in the right directory
By default, if you open Ubuntu using the Windows search bar or the Windows Terminal dropdown, the instance starts in the Ubuntu home directory.
When starting an instance from the terminal, the specific command that you run determines the starting directory.
Start Ubuntu in the current Windows directory from the terminal
When you open PowerShell, the working Windows directory is C:\Users\username.
Run wsl-d<Distro> to start an Ubuntu session in that directory. The prompt will indicate that the Windows C: drive is mounted to Ubuntu and that you are in the Windows home directory:
When Microsoft Outlook automatically terminates (closes) while opening,the issue is often caused by problematic add-ins, a corrupted user profile, or a damaged Office installation.
Here are the primary troubleshooting steps recommended by Microsoft, ordered from simplest to most involved:
1. Run Outlook in Safe Mode and Disable Add-ins
Starting Outlook in safe mode prevents add-ins from loading and helps determine if an add-in is the cause of the problem.
Exit Outlook.
Press the Windows logo key + R to open the Run dialog box.
Type Outlook /safe and press Enter.
If Outlook opens successfully in safe mode, the issue is likely caused by a faulty add-in. To disable them:
Go to File > Options > Add-ins.
At the bottom of the window, next to Manage, select COM Add-ins and click Go.
Clear all the checkboxes in the list, and then select OK.
Restart Outlook normally. If the problem is resolved, re-enable the add-ins one by one to identify the specific one causing the conflict.
2. Repair Microsoft Office
Corrupted Office program files can also cause crashes. An online repair is more thorough than a quick repair.
Exit all Office programs.
Open the Control Panel.
Select Programs > Programs and Features (or Apps > Apps & features in Windows 10/11).
In the list of installed programs, right-click your Microsoft 365 or Microsoft Office installation and then select Change (or Modify).
Choose Online Repair (select Repair if only given one option) and follow the on-screen prompts.
Restart your computer after the repair is complete.
3. Create a New Outlook Profile
If the existing profile is corrupted, creating a new one can often fix the issue.
Select the old profile and click Remove. (Note: If you're unsure if data files are backed up, skip removing the old profile and just proceed with adding a new one).
Click Add, type a name for the new profile, and then follow the prompts to add your email account.
Set the new profile as the default profile and open Outlook.
Additional Steps
Install the latest updates: Ensure both Windows and Outlook are fully updated, as bug fixes for known crashing issues are released regularly. You can update Office from within Outlook by going to File > Office Account > Update Options > Update Now.
Run the Microsoft Support and Recovery Assistant (SaRA) tool: This diagnostic tool can automatically find and fix common Outlook issues.
Check for Antivirus Conflicts: Antivirus software with Outlook integration can sometimes cause problems. Temporarily disable it to see if the issue stops.