Difference between revisions of "Database - Python-Poetry"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
Python-Poetry is a dependencies manager for Python | Python-Poetry is a dependencies manager for Python | ||
* <code>curl -sSL https://install.python-poetry.org | * <code>curl -sSL https://install.python-poetry.org {{!}} python3 -</code> | ||
Once the installation completes, Poetry will prompt you to add its bin directory to your PATH in order to enable the use of poetry in your command line. On Ubuntu with Bash, this can be done by opening the ~/.bashrc file using nano or your preferred text editor: | |||
* <code>nano ~/.bashrc</code> | |||
Now add the following lines at the end of the page - MAKE SURE TO CHANGE THE [YOUR DIRECTORY HERE] TO YOUR LOCAL USER DIRECTORY | |||
* <code>export PATH="/home/[YOUR DIRECTORY HERE]/.local/bin:$PATH"</code> | |||
Apply the changes to your current session | |||
* <code>source ~/.bashrc</code> | |||
Then verify that you are good to go | |||
* <code>poetry --version</code> |
Latest revision as of 22:48, 21 September 2024
Python-Poetry is a dependencies manager for Python
curl -sSL https://install.python-poetry.org | python3 -
Once the installation completes, Poetry will prompt you to add its bin directory to your PATH in order to enable the use of poetry in your command line. On Ubuntu with Bash, this can be done by opening the ~/.bashrc file using nano or your preferred text editor:
nano ~/.bashrc
Now add the following lines at the end of the page - MAKE SURE TO CHANGE THE [YOUR DIRECTORY HERE] TO YOUR LOCAL USER DIRECTORY
export PATH="/home/[YOUR DIRECTORY HERE]/.local/bin:$PATH"
Apply the changes to your current session
source ~/.bashrc
Then verify that you are good to go
poetry --version