+3 votes
4 views
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 (46.1k 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 (107k 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 (33.1k points)
Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...