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.