Skip to main content

How To Install and Setup PyCharm for Python in Windows 10 in 2021?

 

How To Install and Setup PyCharm for Python in Windows 10 in 2021?

Are you just starting your journey to become a Pythoneer or Pythonista? If yes, then your first step should be choosing the best IDE for you. There is a number of python IDEs available on the internet, but I would recommend you to kick start your Python journey by installing PyCharm community edition. Why? Because PyCharm community edition comes with a lot of exciting features such as version control, visual debugging, syntax highlighting and many more. In this article, I will guide you to install PyCharm on your computer without any errors.

Follow the steps given below to install and set up PyCharm IDE for Python:

  1. Download Python by clicking here. You can install any version of Python of your choice. But, I would recommend you to download the latest version of Python., i.e., Python 3.9.1 at the time of writing this article.

  1. Install the .exe file. Make sure you check “Add Python 3.9 to path” otherwise you would need to call it from the command line like this:

C:/Python3.9/Python some_python_script.py

Whereas you can access it by just typing “Python” if you add Python to the path.

  1. Verify if the Python is installed correctly or not by typing python –version in the Windows PowerShell.

If the Python version is displayed, then it is installed on your computer.

Otherwise, you will see an error message as shown in the below animation :

  1. The next step is to download the Community version of PyCharm IDE by clicking here. The community version is free to use. You can download the Professional edition if you want(it has additional support for HTML, JS and SQL). If you are a beginner, then I would recommend you to use the community edition.

  1. Install the PyCharm as shown in the below animation :

PyCharm requires you to reboot your computer after installation. You can reboot as soon as the installation completes by clicking “Reboot Now” or you can skip and reboot your computer later by clicking on “I want to manually reboot later.”

  1. After rebooting your computer, open the PyCharm IDE and click on “ Create New Project.”
  1. Select the location and name of the project.

  1. Click on Existing Interpreter > System Interpreter > Python39.

With this, you are all set to run your python programs in PyCharm. Let’s create a Hello World program to make sure that everything is working correctly. Follow to below steps to create a new python file in PyCharm :

  • Double click on Demo(I created a project named Demo in step 8)
  • Click on NewàPython File.
  • Enter the name of the file and hit enter.

Let’s run the Hello.py file we just created.

In the above animation, you can clearly see that our Hello World program is running perfectly. So that’s how you can easily set up PyCharm to run your Python programs.

Comments

Popular posts from this blog

Connect and Configure MongoDB in Django Project

  Django, a high-level Python web framework, is well-known for its robustness and versatility. While Django natively supports popular databases like PostgreSQL and MySQL, you may want to integrate a NoSQL database like MongoDB for specific use cases. MongoDB’s flexibility and scalability make it an excellent choice for handling unstructured data. In this blog, we will walk you through the process of connecting MongoDB to a Django project, enabling you to harness the power of NoSQL in your web applications. Prerequisites: Before we begin, ensure you have the following prerequisites in place: Django installed on your system. MongoDB database server installed and running. Basic familiarity with Django project structure and database concepts. Virtual Environment, this is optional but recommended. You check our blog  here . Note:  For this tutorial, we are using our basic  skeleton project  for Django. You can also download the project from  here . Step 1: Insta...

How to host Django Application in AWS using gunicorn & nginx in Production

in this post, we will see how to use    nginx  with    gunicorn  to serve    django     applications  in production.  Django is a very powerful web framework and ships with a server which is able to facilitate development. This development server is not scalable and is not suited for production. Hence we need to configure gunicorn to get better scalability and nginx can be used as a reverse proxy and as a web server to serve static files. Let's get started  Step 1 - Installing python and nginx Let's update the server's package index using the command below: sudo apt update Copy sudo apt install python3-pip python3-dev nginx Copy This will install python, pip and nginx server Step 2 - Creating a python virtual environment  sudo pip3 install virtualenv Copy This will install a virtual environment package in python. Let's create a project directory to host our Django application and create a virtual environment inside th...

Mongodb-CheatSheet

  All MongoDb commands you will ever need (MongoDb Cheatsheet) In this post, we will see a comprehensive list of all the    MongoDB  commands you will ever need as a MongoDB beginner. This list covers almost all the most used commands in MongoDB. I will assume that you are working inside a collection named 'comments' on a MongoDB    database  of your choice 1. Database Commands View all databases show dbs Copy Create a new or switch databases  use dbName Copy View current Database db Copy Delete Database  db . dropDatabase ( ) Copy 2. Collection Commands Show Collections show collections Copy Create a collection named 'comments' db . createCollection ( 'comments' ) Copy Drop a collection named 'comments' db . comments . drop ( ) Copy 3. Row(Document) Commands Show all Rows in a Collection  db . comments . find ( ) Copy Show all Rows in a Collection (Prettified) db . comments . find ( ) . pretty ( ) Copy Find the first row matching the ob...