Thursday, October 11, 2018

How to Download And Install Pycharm 'Python Editor' For Linux

In this post, I will show you how you can Download and Install Pycharm 'Python Editor' For Linux and I will also show you how to run pycharm in Linux/Ubuntu

HOW TO DOWNLOAD AND INSTALL PYCHARM "PYTHON EDITOR" FOR LINUX




First of all download the pycharm from Here

and then extract the pycharm tar file by typing

tar -zxvf pycharm-community-2018.1.tar.gz
root@error502:~>>> tar -zxvf pycharm-community-2018.1.tar.gz

>>>ls
root@error502:~>>> ls

>>>cd pycharm-community-2018.1
root@error502:~>>> cd pycharm-community-2018.1

>>>ls
root@error502:~>>>/pycharm-community-2018.1# ls

>>>cd bin
root@error502:~>>>/pycharm-community-2018.1# cd bin

>>>ls
root@error502:~>>>/pycharm-community-2018.1/bin# ls

>>>./pycharm
root@error502:~>>>/pycharm-community-2018.1/bin# ./pycharm.sh [To run a program type:-]

[NOTE] If the file is not executing just type chmod +x [filename]


Now create a project on pycharm and save it
example: print "Nitin Singh" (It's my name)
Now for executing the python file just type

>>>ls
root@error502:~/PycharmProjects/Python project# ls
pythondemo.py  venv

>>>python pythondemo.py
root@error502:~/PycharmProjects/Python project# python pythondemo.py
Nitin Singh (Here is my Name)

Here we go the python script is showing my name
So, I hope now you understand how you can download, Install and run your python script with pycharm, python editor in Linux/Ubuntu.

1 comment: