Difference between revisions of "Database - Python-Poetry"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "Python-Poetry is a dependencies manager for Python * <code>curl -sSL https://install.python-poetry.org {{!}} python3 -</code><br>")
 
 
(3 intermediate revisions 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


* &lt;code&gt;curl -sSL https://install.python-poetry.org {{!}} python3 -&lt;/code&gt;<br>
* <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

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