PyCharm and Windows WSL setup | Python project in Windows WSL and PyCharm

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hello people welcome back to my channel and in this video we'll see that how we can set up pycharm in Windows and we can do development like the Linux environment so you must have heard about this WSL where basically Windows provides a Ubuntu operating system alongside with it and you can have a feel of Linux operating system there were many hacks before like The Bash interpreter or like you use sigvin to have a Linux feel in Windows but with WSL you can run a Ubuntu alongside your Windows operating system if you are a software developer you must have faced this issue like in your office you are using Mac operating system but you have your own desktop where basically Windows is present because most of the desktop in our home contains windows then the project setup becomes very difficult in Windows because you are familiar with Linux but now you have to do the same thing in Windows and this operating system change and it becomes very difficult so we can go away with all these issues if we use WSL in Windows and in this video let's set up pycharm with double OSL the first thing that we need to do is download pycharm so let's go to our browser and just search for pycharm and we will see that what is the first link so the first link comes from jetbrain go to that we will download the pycharm and here if you can see there is a professional and there's a Community Edition so we are interested in Community Edition so just click on it and it will download it so once it is downloaded you will get the exe file and you just need to double click on it follow the steps and the pycharm will be installed so this is a super easy way through which you can install pycharm the next step is to check whether Windows WSL is present or or not so we need to go to our Microsoft store and we'll just click here the Microsoft store will open if you search for Ubuntu so you can see that we have different options that are present here Ubuntu 222.04 20.04 something like that so this is one of the WSL you just need to do a get here and it will automatically get installed so I have already installed one of the Ubuntu WS so I'm not going to install it again let us search Ubuntu again and here you can see this is the Ubuntu 20.04 operating system so if I click on that it will automatically take me to my home 1 to WSL which is present on the operating system so you can see I can do a LS and here everything is present so this is like WSL is present and then we have already installed pycharm let us open our pycham and here you can see this is the pie charm so to develop using WSL we are not going to choose this remote development what we are going to do we are going to choose new project and you can search select any of the options whichever you want and in the location you need to select this one so in the location if you see we have C drive D drive and there will be option of WSL Ubuntu 20.04 so this is the most important step where we will be selecting this one so now this is 1 to 20.04 inside the home folder you can have the username so my username is selfcuts which was already created and here you can create any folder so let me create a folder and I'll say Dev so I'll click on this one so Dev is the folder so this is the location where my project will be created and now we need to choose or configure a interpreter so I'll choose add interpreter and this is Again The Next Step which is very important you need to select on WSL so once you do it so this new Target WSL will automatically check like which pythons are present so you will do next and it will give you the option that Python 3 is present now you know that a very important thing in Python development is setting up the virtual environment so you need to select this virtual environment you need to click on the folder and then again you need to go to the step folder where you want to create your project so I'll click on new folder here I'll do V and V because V and V says virtual environment I'll click on OK and then I'll select it so what will happen this folder will be considered as the virtual environment folder so I'll click OK and then create choose create from existing sources so my python development project is configured here so if you come to the left hand side this is the new UI of pycharm you can check like how you can configure the new new UI so here if you see there is a terminal I'll click on this one and you can see the local environment will open as Dev see the most important thing I can do source and if you see here we are using the Linux command V and we've been activated and here this will activate my virtual environment I can do pip install let's say there is fast API is one of the PIP project so it will do pip install fast API and see it downloads that from the python repositories and finally we have this fast API present so now you can do what you can create new any main file whatever you want and you can start developing your project now how to access this using the terminal so in Windows click on the Windows button and here search for terminal so once you will hit the terminal you will see that one of the apps is the terminal click on this one and here you can see that it automatically takes you to this Ubuntu 20.04 so if I do LS so you can see that the dev folder is already present here I can go inside Dev I can do Source V and we've been activated and you can and here you can see that the python virtual document is activated you can also go to the WSL if it is if it does not opens directly it's like I can click here and I can select Ubuntu 220 3.04 so in the new terminal you can see that the WSL is opening here and you can do whatever you want so now you can see that using Windows using pycharm in Windows you can configure the project so this is like awesome I do development in this way only and I suggest that you should also follow the same thing if you are using a Windows PC for your development purpose so hope you like this video you can also support me by giving us a thanks on this video please share this to other people and please subscribe to my channel thank you
Info
Channel: CodeWithRajRanjan
Views: 9,708
Rating: undefined out of 5
Keywords: windows wsl python, pycharm with windows wsl, setup pycharm with windows wsl, python wsl, pycharm wsl
Id: -gIZkGhr9RE
Channel Id: undefined
Length: 5min 53sec (353 seconds)
Published: Tue May 16 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.