Pip (1.3.1) do not update packages until the local cache is deleted

I am trying to update PACKAGENAME using the following:

pip install --index http://pypi.MYSITE.com/simple/ --upgrade PACKAGENAME 

I often see that the files are not downloaded from the server, and pip says that all the packages were installed successfully, but when I check the installed version, this is not the latest version on the server.

However, if I delete the pip cache and run the above command again, it does download files from the server and installs the latest version. Has anyone experienced this problem?

The workaround I found is to pass the --ignore-installed argument to pip install , but this causes pip download all the packages from the server, even if the latest version is already installed.

+6
source share
2 answers

This is a problem in pip 1.3.1, I met the same problem in Ubuntu 12.10 and Windows, Upgrade to pip 1.4 (up to the latest version) can solve this problem

There are conflicts in the cache, if you upgrade to 1.4, for example, using virtualenv, if you do not want to update the real environment, you will see an error message.

+4
source

(...) if I delete the cache cap (...)

Prior to pip 6.0, you had to pass the --download-cache option to use the boot cache . Since you are using pip 1.3.1 and you are not passing this option, there is nothing in the cache. I suspect you are observing a pip related error (erroneously) reusing assembly directories. This was fixed in pip version 1.4, which was released on 2013-07-23. See my answer to the question. Why does pip install an old version of my package? for more details.

0
source

Source: https://habr.com/ru/post/947224/


All Articles