My GitHub Account

Windows 1st Time Developer

VSCode install using WSL. Windows users have option to have best of Windows and Linux while developing within VSCode.

Anaconda install on WSL.

  • Try the exact commands in WSL Command / Powershell.
  • Only if there is a wget error… To find the latest Linux-x86 distribution hover over 64-Bit (x86) Installer of this page: https://www.anaconda.com/download#downloads. Hover over wget and Anaconda3 commands based on new link.
    PS C:\Users\UserName> wsl  # Windows prompt to WSL command
    $ cd /tmp
    $ wget https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Linux-x86_64.sh
    $ chmod +x Anaconda3-2023.03-1-Linux-x86_64.sh
    # Answer yes to all the prompts
    $ ./Anaconda3-2023.03-1-Linux-x86_64.sh
    

At this point, the next task is to prepare for Packages, Jupyter Notebooks, and Kernels. You must start a new WSL Command / Powershell. Now the WSL prompt should be prefixed with (base) from Anaconda install. If not, you need to go back to Anaconda install.

  • Open Command / Powershell. If you are not looking like this you need to back up.
    PS C:\Users\ShayM> wsl  # Windows prompt
    (base) shay@MSI:/mnt/c/Users/ShayM$ cd ~ # WSL prompt
    (base) shay@MSI:~$ # WSL home, best place to install files
    

Key Packages needing update on WSL Ubuntu

  • In a WSL Command / Powershell install Python3 ```bash $ sudo apt list # list packages $ sudo apt update # update package list $ sudo apt upgrade # upgrade packages $ sudo apt install python3 python3-pip # install python3 and pip3 for development $ python –version # version of python3 should be shown

Jupyter Install and Kernels (MacOs and WSL)

Install Jupyter and check python kernel

(base) id:~$ conda --version 
(base) id:~$ conda install jupyter # install jupyter
(base) id:~$ jupyter kernelspec list # list installed kernels
Available kernels:
  python3    /home/shay/.local/share/jupyter/kernels/python3