[DevEnv] Python setup
Last updated
Was this helpful?
Last updated
Was this helpful?
2024-08-28 update
pyenv + virtualenv
for python version manage & virtual env manage
poetry
for dependency manage
pyenv local
: Sets a local application-specific Python version by writing the version name to a.python-version
file in the current directory.
.python-versions
automatically activate pyenv virtualenv
List available Python versions for installation:
Install a specific Python version:
Set global Python version:
Set local Python version (for current directory):
Create a virtual environment:
Activate a virtual environment:
Deactivate current virtual environment:
Uninstall a Python version:
Show current Python version:
Update pyenv itself:
Python 3.x refers to the 3.x versions of the Python programming language. On the other hand, Anaconda is a distribution of Python and R programming languages for scientific computing, data science, machine learning applications, and large-scale data processing. It includes a collection of over 250 pre-installed packages tailored for these purposes and a package manager called
conda
1.In summary, Python 3.x is a version of the Python programming language while Anaconda is a distribution that includes Python along with other tools and packages for scientific computing and data science1.
Is there anything else you would like to know?
Note If you are using Python 3.3 or newer, the
venv
module is the preferred way to create and manage virtual environments. venv is included in the Python standard library and requires no additional installation. If you are using venv, you may skip this section. https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/#installing-virtualenv
if project have venv/.python-version
even that venv is made by others pyenv automatically trying to use that.