Welcome to the Alteryx Knowledge Base
How to install Python packages via command prompt
Created/Edited -
How To
Install Python packages via the command line for Administrators or Power Users.
Environment
Alteryx Designer 21.4 and above
Prerequisites
Please ensure that Designer is closed before proceeding.
Procedure
Note: In the below examples, we will be using the XlsxWriter Python package. Please ensure that Designer is closed before proceeding.
Online Installation
In your command prompt with admin access, perform the following:
- Navigate to the following directory
-
- 25.1+
cd "C:\Program Files\Alteryx\bin\Python\envs\DesignerBaseTools_vEnv\Scripts" - 24.2
cd "C:\Program Files\Alteryx\bin\Miniconda3\Scripts"
- 25.1+
-
- Activate DesignerBaseTools_venv
activate DesignerBaseTools_vEnv - Navigate to the next directory to prep for installation:
- 25.1+ - No action needed
- 24.2
cd "C:\Program Files\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_vEnv\Scripts" - In the same command prompt window, install the Python package. The syntax is:
pip install <Package to install>
Offline Installation
- Download the Python package/s from https://pypi.org/
- In your command prompt with admin access, perform the following:
- Follow the steps for Online Installation Step #1 above
In the below example, the XlsxWriter package is located in C:\Python\ folder:
Running the pip install command:
pip install --no-index --find-links=file:///C:/Python/ XlsxWriter
Additional Information
- Further information: https://packaging.python.org/en/latest/tutorials/installing-packages/
- Installing Python packages via the Python tool in Designer: https://knowledge.alteryx.com/index/s/article/How-To-install-uninstall-Python-Packages-without-command-prompt-or-with-the-built-in-installPackages-method
Was this article helpful?