Poetry Operations: Difference between revisions
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
=Installation= | =Installation= | ||
==With <tt>brew</tt>== | |||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
brew install poetry | brew install poetry | ||
</syntaxhighlight> | </syntaxhighlight> | ||
This will install Poetry with the system Python version. To install Poetry with a specific Python version | This will install Poetry with the system Python version. To install Poetry with a specific Python version, see [[#With_Custom_Installer|With Custom Installer]] section below. | ||
==With Custom Installer== | |||
The custom installer installs Poetry in a new virtual environment to isolate it from the rest of your system. This ensures that dependencies will not be accidentally upgraded or uninstalled, and allows Poetry to manage its own environment. | |||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
# ensure the Python version is the one you want: | # ensure the Python version is the one you want: | ||
Line 16: | Line 19: | ||
# install Poetry | # install Poetry | ||
curl -sSL https://install.python-poetry.org | python3 - | |||
</syntaxhighlight> | </syntaxhighlight> | ||
<font color=darkkhaki>It is probably possible to achieve that with brew too, not sure how.</font> | <font color=darkkhaki>It is probably possible to achieve that with brew too, not sure how.</font> |
Revision as of 01:19, 3 November 2023
Internal
Installation
With brew
brew install poetry
This will install Poetry with the system Python version. To install Poetry with a specific Python version, see With Custom Installer section below.
With Custom Installer
The custom installer installs Poetry in a new virtual environment to isolate it from the rest of your system. This ensures that dependencies will not be accidentally upgraded or uninstalled, and allows Poetry to manage its own environment.
# ensure the Python version is the one you want:
python --version
# install Poetry
curl -sSL https://install.python-poetry.org | python3 -
It is probably possible to achieve that with brew too, not sure how.