Menu
Sometimes to run a Python code or script, a specific package may be required. However, Python is a dynamic programming language and has a dynamic environment, and hence, the package versions change regularly. Generally, it is used to install and update the packages, but there are many different use cases. By default, when we use the pip command, it will install the latest version of the specified package. In Python, pip is a command and tool used to install, update and remove third-party packages. Problem Statement: How to install a specific package version with pip in Python? pip install -Iv package-name = version.Summary: There are primarily two ways of installing a package with a specific version using pip –.
0 Comments
Leave a Reply. |