Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
3 views
in Python by (240 points)
HI all. I have Ubuntu 9:10 and also a package called as M2Crypto. I want to install the latest version of it here.

How can I go about uninstalling the old version and go about setting up the new version?

Appreciate the help!

2 Answers

0 votes
by (300 points)

Using Python pip, you can pretty much do this easily. Pip is the most used Python package manager. You can download M3Crypto and use it. Overwriting should work fine using Pip.

Also, you can use this:
 

sudo pip install [package_name] --upgrade


Let me know if that works!
0 votes
by (106k points)
edited by

If you are using windows then via windows command prompt you can run the following command and you will get a list of all the outdated packages:

 pip list --outdated 

After that, you can run below-mentioned command which will upgrade the packages and uninstall the previous version.

pip install [package] --upgrade 

If you have not upgraded your pip then use the following command and it will uninstall the previous version of pip and will install the latest version of pip.

py -m pip install --upgrade pip

To know more about this you can have a look at the following video:-

Related questions

0 votes
2 answers
0 votes
1 answer
asked Dec 23, 2020 in Python by ashely (50.2k points)
0 votes
1 answer
asked Dec 5, 2020 in Python by laddulakshana (16.4k points)

Browse Categories

...