py setup virtual environments and packages

Аватар автора
Питон и инновационный язык
# 004_py_setup-virtual-environments-and-packages Automate smart instead of hard and happy coding. install system package if needed ```bash sudo apt install python3-venv ``` Creating virtual environments ```bash python3 -m venv /path/to/new/virtual/environment ``` ```bash python3 -m venv ./venv source ./venv/bin/activate ``` Managing Packages with pip browse the Python Package Index ```bash pip search excel ``` display all of the packages ```bash pip list ``` latest version of a package ```bash pip install pandas ``` specific version of a package ```bash pip install requests==2.6.0 ``` upgrade the package ```bash pip install --upgrade requests ``` display information about a particular package ```bash pip show requests ``` produce a list of the installed packages to reinstall ```bash pip freeze ﹥ requirements.txt ``` install the freezed necessary packages ```bash pip install -r requirements.txt ``` music Written by Alexander Nakarada.

0/0


0/0

0/0

0/0