Welcome to the Alteryx Knowledge Base
How To Create a Text File for a Backing up Designer Python Packages
Created/Edited -
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"
To reinstall the packages using that file
- Start with a new Python Tool.
- 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?