Categoria
Códigos adicionados no site: 18
Temas para Código
Virtual Environments and Packages
Palavras-chaves: Linux, Python, Command |
Cadastro: 20/09/2025 22:49:45 | Atualização: 28/09/2025 20:01:20
Cadastro: 20/09/2025 22:49:45 | Atualização: 28/09/2025 20:01:20
You can also install a specific version of a package by giving the package name followed by == and the version number:
python3 -m pip install requests==2.6.0
If you re-run this command, pip will notice that the requested version is already installed and do nothing. You can supply a different version number to get that version, or you can run python -m pip install --upgrade to upgrade the package to the latest version:
python3 -m pip install --upgrade requests
python3 -m pip uninstall followed by one or more package names will remove the packages from the virtual environment.
python3 -m pip show will display information about a particular package:
python3 -m pip show requests