PyCharm Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=
* [[PyCharm#Subjects|PyCharm]]
* [[PyCharm#Subjects|PyCharm]]
=Overview=
=Python Interpreter=
=Python Interpreter=
{{External|https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html}}
{{External|https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html}}
Line 8: Line 10:


=Virtual Environment=
=Virtual Environment=
A virtual environment consists of a base interpreter and installed packages. It manages settings and dependencies of a particular project, regardless of other Python projects. Several types of virtual environments are available: [[#Virtualenv| Virtualenv]], [[#Pipenv|Pipenv]], [[#Poetry|Poetry]] and [[#Conda|Conda]].


==Virtualenv==
{{External|https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html}}
{{External|https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html}}
A virtual environment consists of a base interpreter and installed packages. It manages settings and dependencies of a particular project, regardless of other Python projects.
==Virtualenv==
{{External|https://virtualenv.pypa.io/en/latest/index.html}}
{{External|https://virtualenv.pypa.io/en/latest/index.html}}


Line 19: Line 19:
==Pipenv==
==Pipenv==
{{External|https://www.jetbrains.com/help/pycharm/pipenv.html}}
{{External|https://www.jetbrains.com/help/pycharm/pipenv.html}}
Pipenv is another tool that provides all necessary means to create a virtual environment for a Python project. It automatically manages project packages through the <code>Pipfile</code> file as you install or uninstall packages.
==Poetry==
{{External|https://www.jetbrains.com/help/pycharm/poetry.html}}
{{External|https://python-poetry.org}}
Poetry is a tool that facilitates creating a Python virtual environment based on the project dependencies. You can declare the libraries your project depends on, and Poetry will install and update them for you.
==Conda==
{{External|https://www.jetbrains.com/help/pycharm/conda-support-creating-conda-virtual-environment.html}}
{{Internal|Conda|Conda}}

Latest revision as of 00:51, 18 February 2022

Internal

Overview

Python Interpreter

https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html

PyCharm needs at least one Python interpreter. It can be chosen from the system interpreter

System Interpreter

A system interpreter is the interpreter that comes with the Python installation on the system. The system interpreter can be used solely for all Python scripts or as a base interpreter for the Python virtual environments.

Virtual Environment

A virtual environment consists of a base interpreter and installed packages. It manages settings and dependencies of a particular project, regardless of other Python projects. Several types of virtual environments are available: Virtualenv, Pipenv, Poetry and Conda.

Virtualenv

https://www.jetbrains.com/help/pycharm/creating-virtual-environment.html
https://virtualenv.pypa.io/en/latest/index.html

virtualenv is a tool to create isolated Python environments. virtualenv is bundled in PyCharm, which uses it to create a project-specific virtual environment. For Python 3.3+, the built-in venv module is used, instead of virtualenv

Pipenv

https://www.jetbrains.com/help/pycharm/pipenv.html

Pipenv is another tool that provides all necessary means to create a virtual environment for a Python project. It automatically manages project packages through the Pipfile file as you install or uninstall packages.

Poetry

https://www.jetbrains.com/help/pycharm/poetry.html
https://python-poetry.org

Poetry is a tool that facilitates creating a Python virtual environment based on the project dependencies. You can declare the libraries your project depends on, and Poetry will install and update them for you.

Conda

https://www.jetbrains.com/help/pycharm/conda-support-creating-conda-virtual-environment.html
Conda