Solution to version conflict of the installation module package in python, python Module

Source: Internet
Author: User

Solution to version conflict of the installation module package in python, python Module

Problem

Recently, I encountered a problem in my work. When installing the python software package, I often encountered such a problem. For example, for ipython, the installed version of the sub-host is 1.2.1, which is obviously too low to run jupyter. If you try to install it with pip, you will find that the download process is smooth, however, this error is always reported during installation.

The error message is as follows:

... 'Not uninstalling ipython at/usr/lib/python2.7/dist-packages, owned by OS '......

It finally shows that ipython has been successfully installed, but the version is still 1.2.1, which makes me very big.

Cause

Later I studied it and found that the cause of this problem is very simple because the apt-get version of ubuntu conflicts with the version installed by pip. The 'Status' of apt-get is a little higher than that of pip (after all, it is a good friend), and the system will give priority to the software packages in apt-get. However, the software in apt-get is usually old and cannot keep up with the update speed of python packages, however, you cannot delete old apt-get versions ...... This causes the undetachable problem mentioned in the error.

Solution

As for this, the solution is clear, as long as you manually uninstall the outdated software package in apt-get.

Summary

The above is all the content of this article. I hope the content of this article will help you in your study or work. If you have any questions, please leave a message, thank you for your support.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.