Installing MySQL_python with a Specific Version Using Pip
In an attempt to install version 1.2.2 of MySQL_python in a virtualenv with the --no-site-packages option, you may encounter difficulties. Despite providing pip with the specific version argument, it still installs version 1.2.3.
Solution
To install a specific package version with pip, you can use the following options:
Alternative Option
Example
pip install --force-reinstall -v "MySQL_python==1.2.2" # or pip install -Iv "MySQL_python==1.2.2"
Additional Considerations
pip install -Iv http://sourceforge.net/projects/mysql-python/files/mysql-python/1.2.2/MySQL-python-1.2.2.tar.gz/download
The above is the detailed content of How to Force Pip to Install a Specific Version of MySQL_python?. For more information, please follow other related articles on the PHP Chinese website!