Explore Courses Blog Tutorials Interview Questions
+3 votes
in Python by (3.5k points)
edited by

I want to install MySQL_python adapter (v1.2.2) using a new virtual env I created with a - -no-site-packages option. PyPi 1.2.3 is the current version, can someone suggest me to install the older version? I tried this:

pip install MySQL_python==1.2.2

In site packages it shows MySQL_python-1.2.3-py2.6.egg-info , How can I do it?

2 Answers

0 votes
by (46k points)
edited by

It's very easy to do, just use pip install command, Ex.

pip install 'package>=0.3.0,<0.5.0'

and for downgrading just use --force-reinstall after it, like:

pip install 'stevedore>=0.3.0,<0.5.0' --force-reinstall

0 votes
by (106k points)

One way as suggested in this post is to mention version in pip as

pip install -Iv MySQL_python==1.2.2

You can use the following video tutorials to clear all your doubts:-

Related questions

+2 votes
3 answers
0 votes
1 answer
+3 votes
2 answers
0 votes
1 answer
0 votes
1 answer
asked Jul 23, 2019 in Python by Eresh Kumar (45.3k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers


94.2k users

Browse Categories