pip install -force-install MySQL_python=1.2.1 Install Specific Version Range ![]() If there are some problems like errors, collusion, or already installed we can force the installation of the specific package with the –force-install option like below. pip install -Iv MySQL_python=1.2.1 Force Installation of Specific Package Version We can remove other versions with the -Iv option. There are different reasons but the most common reason is the versions can collide. If you installed a specific version but when try to use the installed package you may get an error. pip install MySQL_python=1.2.1 Remove Other Versions and Then Install Specific Package Version For example, in order to install the MySQL_python package version, the 1.2.1 following command can be used. But if we have to install the previous version which is a specific package version the = sign can be used to specify the version we want to install. Install Specific Package Versionīy default, the pip command uses the install option and the package name in order to install the latest version. In this tutorial, we will learn how to install a specific Python package or module with the pip command. ![]() But in order to run a python script or code a specific and old package may be required for compatibility. But Python is a very dynamic language where its environment is dynamic too and the package versions change regularly. By default, the pip command installs the latest version of the specified package. ![]() The pip is generally used to install and update packages but there are different use cases. The pip is a command and tool used to install, update and remove 3rd part packages for Python.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |