Welcome to the Alteryx Knowledge Base

How To Create a Text File for a Backing up Designer Python Packages
user

Created/Edited - 12/6/2024 by Matt Paden | Alteryx

How To: Create a Text File for a Backing up Designer Python Packages

 

This article will go over how to create a requirement text from the packages that are installed for the Python Tool and walk through how to use that document to reinstall after installs or upgrades.

 

Prerequisites

     
    • Alteryx Designer

      • Version: All

     

    Procedure

     

    To generate the text file containing the python packages

    (1) Create a folder C:\temp (or change the command below to another location)
    (2) Start with a new Python tool.
    (3) Click the + icon to create a new cell
    (4) Enter the following command in the new cell (optionally replace the file location and file name).
    !pip freeze > "C:\temp\requirement.txt"
    image.png
    (5) After you run that command, confirm the document was created and has the package list inside. This is the document you will want to use to reinstall all the packages after upgrading or after a fresh installation of Designer.  The content will appear as (your versions may differ):
    image.png
      

    To reinstall the packages using that file

    1. Start with a new Python Tool.
    2. In a new cell, run the following command, pointing to the location of your file.
    !pip install -r "C:\temp\requirement.txt"
     

    Additional Resources

     
    Was this article helpful?