Problem
You are trying to install a YXI file and the following message appears:
Message:
An error occurred during installation of the Python tool.
Cache entry deserialization failed, entry ignored
Procedure
During the installation of a Python-based tool, Python package manager -pip- uses a cache like a web browser. The content of this cache may be corrupted. There are two options for resolving this issue:
Option 1 -for current installation only
Deletefolder %LOCALAPPDATA%\pip\cache(ex: C:\Users\my_user\AppData\Local\pip\cache where my_user isyour Windows login)
Note: Folder will be recreated for next installation
Spoiler (Highlight to read)
Example:
Option 2 - permanent change, for all installations
Note: This method is useful for .yxis that contain multiple installations. For example, the Azure Data Lake .yxi installs both input and output tools.
1. Stop Alteryx Designer
2. If it doesn't exist, create file %APPDATA%\pip\pip.ini (ex: C:\Users\my_user\AppData\Roaming\pip\pip.ini)
Note that you mayhave to createpip folder
3. Edit pip.ini with following content.
[global] no-cache-dir = false
Spoiler (Highlight to read)
Example:
otherwise, if pip.ini already contains some instructions:
no-cache-dir = false
Spoiler (Highlight to read)
Example:
4. Proceed with YXI installation
Note:
- pip.ini impacts all pipoperations for the current user, except those inside a Python environment (e.g., the Python)
- Although it might seem counterintuitive, afalse value enables no-cache-dir (source:https://pip.pypa.io/en/stable/user_guide/)