Solution to conflicts when installing module packages

Y2J
Release: 2017-05-11 10:47:58
Original
3495 people have browsed it

This article mainly introduces to you the solution to the problem of module package version conflict in installation in python. The article introduces the cause and solution of the problem. Friends who need it You can use it as a reference, let’s take a look below.

Problem

#I recently encountered a problem at work. When installing python software packages, I often encounter something like this one question. For example, for ipython, the version installed on the machine itself is 1.2.1, which is obviously too low to run jupyter. I tried to install it using pip, but found that the download process went smoothly, but such an error always occurred during installation.

The error message is as follows:

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

Finally, it shows that ipython has been successfully installed, but when I check the version, it is still 1.2.1, which makes me very confused.

Cause

#After some research, I found that the cause of this problem is actually very simple, it’s because of ubuntu’s apt-get The version conflicts with the version installed by pip. Since the 'status' of apt-get is slightly higher than that of pip (after all, it's your real father), the system will give priority to using the software packages in apt-get. However, the software in apt-get is usually very old and cannot keep up with the update speed of python packages. Although pip has a new version, it cannot be delete## Older version of #apt-get. . . . . . This caused the problem of being unable to uninstall mentioned in the error.

Solution

#As for this, the solution to the problem is already very clear, just manually uninstall the corresponding one in apt-get Outdated packages will do.

Summary

【Related recommendations】

1. Python free video tutorial

2. Python meets data collection video tutorial

3. Python basic introductory tutorial


The above is the detailed content of Solution to conflicts when installing module packages. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template