Как установить pycharm на linux mint
Перейти к содержимому

Как установить pycharm на linux mint

  • автор:

Как установить PyCharm на Linux Mint 20

В этом руководстве мы покажем вам, как установить PyCharm на Linux Mint 20. Для тех из вас, кто не знал, PyCharm — это интеллектуальная и полнофункциональная IDE для Python, разработанная JetBrains. Это также обеспечивает поддержку в отношении Javascript, Typescript, CSS и т. Д. Кроме того, вы можете расширить функции PyCharm, просто используя плагины. Используя плагины PyCharm, вы также можете получить поддержку в отношении таких фреймворков, как Django , Flask. Мы также можем использовать PyCharm для других языков разработки, таких как HTML, SQL, Javascript, CSS и других.

В этой статье предполагается, что у вас есть хотя бы базовые знания Linux, вы знаете, как использовать оболочку, и, что наиболее важно, вы размещаете свой сайт на собственном VPS. Установка довольно проста и предполагает, что вы работаете с учетной записью root, в противном случае вам может потребоваться добавить ‘ sudo ‘ к командам для получения привилегий root. Я покажу вам пошаговую установку PyCharm Community Edition на Linux Mint 20 (Ульяна).

Установите PyCharm на Linux Mint 20 Ulyana

Шаг 1. Перед запуском приведенного ниже руководства важно убедиться, что ваша система обновлена, выполнив следующие apt команды в терминале:

Шаг 2. Установка PyCharm на Linux Mint 20.

  • Установите PyCharm с помощью Snap:

Просто веселое видео для отвлечения и расслабления в течение 2 минут

Чтобы установить PyCharm CE, просто используйте следующую команду:

Шаг 3. Доступ к PyCharm в Linux Mint.

После успешной установки, чтобы запустить PyCharm из Приложения -> PyCharm или через терминал, выполните следующую команду:

Поздравляю! Вы успешно установили PyCharm . Благодарим за использование этого руководства для установки последней версии PyCharm Community Edition в системе Linux Mint. Для получения дополнительной помощи или полезной информации мы рекомендуем вам посетить официальный сайт PyCharm .

Sorry, you have been blocked

This website is using a security service to protect itself from online attacks. The action you just performed triggered the security solution. There are several actions that could trigger this block including submitting a certain word or phrase, a SQL command or malformed data.

What can I do to resolve this?

You can email the site owner to let them know you were blocked. Please include what you were doing when this page came up and the Cloudflare Ray ID found at the bottom of this page.

Cloudflare Ray ID: 7a2941681ad822f5 • Your IP: Click to reveal 88.135.219.175 • Performance & security by Cloudflare

How To Install PyCharm In Linux Mint?

The PyCharm is a fully-featured IDE for python. It is developed by JetBrains. PyCharm supports many other programming languages such as HTML, CSS, Javascript, SQL, etc. The features of PyCharm can be extended using the plugins. It has built-in graphical debugger, integrated unit tester, and embedded version control system. Using plugins, frameworks like Django, Flask, and Anaconda can be used. PyCharm comes in two versions community and professional.

In this article, we will see the installation of the PyCharm community edition in Linux Mint.

Installing PyCharm Using Snappy Package Manager

Snappy is a package manager developed by Canonical for the Linux operating system. And the packages used by this package manager are called snaps. Snaps themselves have no dependencies on any app store. It provides better package management. To install snappy package manager in your system –

If it says the package already installed then you can move to the next step.

To download and install PyCharm snap package use the following command –

After installation get successful it will display the following information

Now run the following command to open PyCharm –

Now if it displays output on terminal something like this –

then you need to add /snap/bin in the PATH environment variable. To add this first open /etc/environment using a text editor –

and then add :/snap/bin into the string passed to the PATH variable. And then save and exit from the text editor and reboot your system. Then again use the following command to start IDE –

Installing PyCharm Using .tar.gz Archive

First, download the .tar.gz archive containing PyCharm community edition from the Official Website of JetBrains. This method of installation probably works on any system but you have to manually extract it somewhere and the updates are also not easy. To extract and install PyCharm follow the given steps –

1. Unpack the downloaded PyCharm package to the directory where you want to install it –

the recommended installation location according to filesystem hierarchy standard is /opt now to install PyCharm into this directory use the following command –

2. Now change the directory to the bin subdirectory –

3. Run the following command from this subdirectory –

Uninstalling PyCharm

If you want to remove PyCharm IDE from your system. You should use the following command –

If you used snap command to install then use the following command to uninstall it –

Conclusion

Other distributions based on Debian or Ubuntu follow a similar installation process. Now if you have a query or suggestion regarding the topic write us in the comments below.

A comment on «How To Install PyCharm In Linux Mint?»

Hi,
You can use either way but I would suggest using snap because snaps are self-contained applications and you need not navigate among the directories for installation, post-installation updates are also easy when you install it using snap.
Thanks

Как установить pycharm на linux mint

It’s considered strange if somebody says they never heard of Python. Still, if you want to know about Python, Python is a general-purpose, versatile, powerful, high-level programming language. Python can be used in both scripting and programming. It’s the most versatile language as it can be used in various landscapes, from small scripts to large complex application developments. It’s the favorite programming and scripting language for cybersecurity professionals either. In the field of AIML, no other languages dominate Python. Python is a different topic of discussion. Let’s leave the Python at this point. Let’s concentrate more on running Python on an IDE like PyCharm on Linux operating system. Before you run a python code on IDE, you will have to install and configure it on your Linux, isn’t it?. Let’s see how to install PyCharm on Linux Mint and Ubuntu and how to create your own project on PyCharm and run a python program.

Table of Contents

What Is An IDE?

Before we jump right into the PyCharm, let’s see what is an IDE is. IDE is short for an Integrated Development Environment. IDT is basically a software environment used to build applications that combine common developer tools into a single interface. IDE is typically composed of several components:

  1. Intellegent source code editor: It is an advanced text editor, which helps programmers in writing codes with features such as auto-syntax highlighter and auto-completion. These features help programmers identifying the different objects in the program with different coloring systems.
  2. Local build automation: This component helps programmers in automating simple, repeatable tasks like compiling source code into binary code, packaging binary code, and running automated tests, creating a local build of the software.
  3. Debugger: Debugger allows to comple the entire program in debug mode and stop/pause the executio whereever the programmer wnats. It helps programmers in finding the location of bugs in the source code.

What Is PyCharm?

PyCharm is one of the most popular IDE for Python. PyCharm is developed by JetBrains (formerly known as IntelliJ), a Czech software company known for making software development tools. PyCharm is a cross-platform IDE tool that works on Windows, Linux, and mac. This tool comes in both community and professional editions. The community edition is made free to use under Apache License. However, the professional edition is its paid version which comes with some additional features.

Benefits of Using PyCharm:

It is not mandatory to have PyCharm write and run Python programs. But, the features PyCharm provides made programmers’ life a lot easier. Pycharm offers a long set of features such as Intelligent Coding Assistance, a collection of built-in developer tools, graphical debugger, Python profiler, support for SQL, Django, and Anaconda.

Its Intelligent Coding Assistance capabilities allow programmers to do code inspection, code completion and identify and fix the errors on the fly. Its smart code editor is smart enough to support Python, JavaScript, CoffeeScript, TypeScript, CSS, and other popular languages syntax.

Pycharm is loaded with a wide set of development tools. In its collection of tools, it has a powerful graphical debugger that helps find the exact location of bugs. It supports most of the popular databases, including Access Oracle, SQL Server, PostgreSQL, MySQL, and others. It’s a great tool for web developers as it supports modern web development frameworks such as Django, Flask, Google App Engine, Pyramid, and web2py.

The professional version of PyCharm can save programmers time by integrating well-known VCS tools like Git, SVN, Mercurial, or other version control systems. The Pro version also comes with a feature that allows programmers to run and debug your application on remote machines.

This is not just the end. PyCharm has tons of beneficial features for programmers. Please check out the comprehensive list of features on their website.

How to Install PyCharm on Linux Mint and Ubuntu in Three Different Ways?

PyCharm is easy to install application. You can download the community edition of PyCharm and use it for free. Visit this page if you want to download PyCharm for Windows operating system. However, the purpose of writing this post is to show you how to install PyCharm on Linux Mint and Ubuntu. You can install PyCharm in different ways on Linux systems. Let’s see three ways to install PyCharm on Linux Mint and Ubuntu OS.

  1. Install PyCharm from Snap Store
  2. Install PyCharm from Software Manager
  3. Install PyCharm from an Installer File

#1. Install PyCharm From Snap Store

You can use snap packages to install PyCharm from your terminal window. Snaps are application packages packed the application with all the dependencies required to install and run the application.

  1. Enable the snap on Linux Mint.
  • Press Ctrl+Alt+t to open the terminal.
  • Remove ‘nosnap.pref‘ from the location /etc/apt/preferences.d/nosnap.pref:
  • Update the repository.

2. Install snapd from the command line. Note: you can also install snapd from the Sodtware Manager either. Search ‘snapd’ in the Software Manager.

3. PyCharm is distributed in three editions: Professional Edition, Community Edition, and Edu Edition. Run these commands to install the PyCharm. We are going to install the community edition in this demonstration.

4. Use these commands to run Pycharm from the terminal.

Read and accept the terms and data sharing policy.

#2. Install PyCharm From Software Manager

It is possible to install PyCharm directly from the Software Manager. It’s is the easiest way to install. All you need to open the Software Manager and search ‘pycharm’ in the search box. Only two editions: professional and community editions are available on the Software Manager. Select the one which you want. We are installing the community edition like previous.

  1. Open the Software Manager and type ‘pycharm’ in the search box.

2. Select the one which you want. We are installing the community edition as we did before. Click on the install button in the top right corner. Let the installation process complete. The installation process may take a few minutes depending on your system performance and internet bandwidth.

3. Launch PyCharm after the completion of the installation.

Read and accept the terms and data sharing policy to start PyCharm.

#3. Install PyCharm From an Installer File

  1. Download the installer from here. You can try downloading using the wget command either.

2. Downloaded file would be in the ‘Downloads‘ directory. It is recommended to install the package under /opt/ directory. Unpack the tar file using this command.

3. Namivage to the ‘bin‘ inside the PyCharm. Run ‘python.sh‘ file to launch PyCharm.

4. Read and accept the terms and data sharing policy to launch the PyCharm on Linux Mint.

How to Configure PyCharm to Run Python Programs?

This is the first window PyCharm greats you with. Start by creating a new project out here. After you click on the New Project. This is the configuration window you will land on. Configurations are self-explanatory. There are three main things you should always decide. That is the location of your new project, environment, and Interpreter.

Create your first python file from File > New > Python File. Name the file of your choice. Hit the ‘Enter‘ key. We have created ‘firstPythonProgram.py’ file.

How to Configure Python Interpreter on Pytharm?

You should have an interpreter configured to run the program. However, most of you will not see the interpreter for the first time. Configure the interpreter from File > Settings >Project (The project you created) > Python Interpreter.

Click the settings icon select ‘Add

Configure the interpreters for Virtual Environment and System Interpreter from the dropdown. If you use Anaconda, you can configure the interpreter for Conda either. It is all set to run the python program.

How to Add/Install Python Packages In PyCharm?

You might face problems running your program due to the required packages are not installed. It is quite easy to install the packages on PyCharm.

To add or install packages on PyCharm: File > Settings > Project (The project you created) > Python Interpreter > Add ‘+’ icon.

Search the package you want to install. Select the package and click on ‘Install‘.

You will see a successful message after the installation of the package.

This completes the basic configuration of PyCharm to run the python program.

We covered the installation of PyCharm only on Linux Mint. The installation process is pretty much the same in Ubuntu. You can use the same tutorial to install Pychamr on Ubuntu either.

Thanks for reading the tutorial. Please let us know if you have any difficulties in completing the process.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *