rodrigosantosbr

(Py 3) Setup on the Windows subsystem for Linux (WSL)

Jul 24th, 2021 (edited)
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!

To install python run the following at the WSL:

sudo apt update && upgrade
sudo apt install python3 python3-pip ipython3

Installing Atom

Download Atom from the official website in Windows.
Add Atom to the windows environment variables.

  • Run the following: win+rand type in SystemPropertiesAdvanced.exe
  • Open: Environment Variables
  • Add your Atom path:
    C:\Users\<user-name>\AppData\Local\atom\bin

Open your bash configuration: vim ~/.bashrc
Add to the end of the file and save/exit:

alias atom=”/mnt/c/Windows/System32/cmd.exe /c 'atom'"

Update your bash profile:

source ~/.bashrc

Now you can use

atom . &

to open your python projects from WSL command line.

https://medium.com/@rhdzmota/python-development-on-the-windows-subsystem-for-linux-wsl-17a0fa1839d

Add Comment
Please, Sign In to add comment