Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

Alteryx Designer Desktop Knowledge Base

Definitive answers from Designer Desktop experts.

Install Python packages via command prompt

TessaS
Alteryx
Alteryx
Created

 

Python packages can be installed via the Python tool in Designer however some users may prefer to install via the command line. To install Python packages via the command line, first close Designer and then open a command prompt as an administrator. 

Follow the instructions below for whichever version of Designer you are using.
 

For 2021.1.4+

Activate DesignerBaseTools_venv:

  1. cd "C:\Program Files\Alteryx\bin\Miniconda3\Scripts"
  2. activate DesignerBaseTools_vEnv
  3. cd "C:\Program Files\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_vEnv\Scripts" 
  4. pip install <packagetoinstall>


For 2019.3+

Activate JupyterTool_venv:

  1. cd "C:\Program Files\Alteryx\bin\Miniconda3\Scripts"
  2. activate JupyterTool_venv 
  3. cd "C:\Program Files\Alteryx\bin\Miniconda3\envs\JupyterTool_vEnv\Scripts" 
  4. pip install <packagetoinstall>

 

For 2018.3 to 2019.2

  1. cd "C:\Program Files\Alteryx\bin\Miniconda3\PythonTool_venv\Scripts" in the command line.
  2. activate.bat
  3. pip install <packagetoinstall>

 

Example on version 2021.1.4 +:

image.pngimage.png

Additional Resources

Comments
tonyzhu
6 - Meteoroid

Thanks for this post! It is very help for people like me who prefer using command line.

 

Just a quick question, can i assume this is the same when installing on Alteryx server (workers) etc. 

 

Regards,

Tony

aamclendon
5 - Atom

   

Link86
8 - Asteroid

Wanted to provide an update. For 2021.2 the following is the updated code.

 

cd "C:\Program Files\Alteryx\bin\Miniconda3\Scripts"

activate DesignerBaseTools_vEnv

cd "C:\Program Files\Alteryx\bin\Miniconda3\envs\DesignerBaseTools_vEnv\Scripts"

pip install --trusted-host files.pythonhosted.org --trusted-host pypi.org --trusted-host pypi.python.org selenium[package name]

kiotsuresh
8 - Asteroid

I'm Not able to run the activate command through cmd prompt throws me an error activate' is not recognized as an internal or external command,
operable program or batch file. Let me know how to fix this?

 

Command:C:\Program Files\Alteryx\bin\Miniconda3\Tools\scripts>activate DesignerBaseTools_vEnv

Alteryx version 2022.1