Database - Python-Poetry

From Da Nerd Mage Wiki
Revision as of 22:48, 21 September 2024 by Guruofnothing (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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