Pipx: Things install fine but I get warning "Cache entry deserialization failed, entry ignored"

Created on 30 Jan 2019  路  4Comments  路  Source: pipxproject/pipx

Just started using pipx. Packages install fine, but I get always the following warning on the console:

Cache entry deserialization failed, entry ignored

This happens on Centos 6 with Python 3.6.4.

Most helpful comment

Upgrade Pip using> curl https://bootstrap.pypa.io/get-pip.py | python3

All 4 comments

I get the same warning. I ran with --verbose and it happens when pip is being upgraded.

<virtuan env>/bin/python -m pip install --upgrade pip
Cache entry deserialization failed, entry ignored

I think this is because the version of pip that ships with Python 3 is fairly old (Python 3.6 ships with pip 9.0.1) and has a different serialization format from newer versions of pip. There is a closed issue on pip here: https://github.com/pypa/pip/issues/5250. I don't think there is anything to worry about other than not re-using the cache (more network requests?).

Perhaps someone else has more insight into what the root cause of this is and if there is any way pipx can work around/fix it?

Thanks @cs01.

How can I specify in pipx not to use the cache? Can I even put this somehow in a config file to persist it?

With the latest version, --no-cache-dir should work for you

pipx install --pip-args="--no-cache-dir" PACKAGE

At this time there is no config to persist this argument.

Upgrade Pip using> curl https://bootstrap.pypa.io/get-pip.py | python3

Was this page helpful?
0 / 5 - 0 ratings

Related issues

pfmoore picture pfmoore  路  6Comments

cs01 picture cs01  路  4Comments

pawamoy picture pawamoy  路  9Comments

z0rc picture z0rc  路  10Comments

floatingpurr picture floatingpurr  路  5Comments