Computer Science
Python virtual env
On this page
Differen virtual environment
- venv
- peotry
- anaconda (minconda)
Following this post we will show the difference virtual environment how to install and use.
Poetry
Install
we have two methods for installing poetry
- use
pipx
If
pipxis not already installed, you can follow any of the options in the officialpipxinstallation instructions. Any non-ancient version ofpipxwill do.
pipx install poetry
- use the official installer
- Linux, macOS, Windows (WSL)
curl -sSL https://install.python-poetry.org | python3 -
If you use the official installer, you need to set up the PATH manually.
First you might go to the path with ~. Then, find file .profile or .bashrc and add the following line in that file.
export PATH="/home/<username>/.local/bin:$PATH"
remember to change the with you own computer.