This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Alteryx Designer in 2019.3 has introduced some changes to how Python environment for (not only) Python Code tool is managed. Finally this allows us to utilize conda, which was (to my best knowledge) not possible in previous versions. Unfortunately for packages management at this time only (env not yet), but still awesome!
Well, Python Code tool in Alteryx relies on pip to fetch packages when you call the Alteryx.installPackages().
What if that does not work for whatever reason? Maybe the package is only available at anaconda.org, or maybe you need to work with non-Python dependencies which pip simply won't install.
While we are at it - Pip installs Python packages whereas conda installs packages which may contain software written in any language.It does not mean that pip and conda cannot coexist, you can actually rely on both to manage your environment. Its just that the two together are stronger than either of them alone.
Note: Currently there is a hardcoded conda env for Python code tool and you cannot simply change this.
It will be something like "C:\Program Files\Alteryx\bin\Miniconda3\envs\JupyterTool_vEnv"
Currently conda is limited to allow package management, not yet env management.
You should be easily able to utilize CONDA from CMD (C:\Program Files\Alteryx\bin\Miniconda3\Scripts\conda.exe) to install the package you need... (Use this reference on Conda's website for more details)
conda init cmd.exe #You need to init the cmd.exe env, requires restart of cmd
conda info --envs #List all your available envs
conda activate JupyterTool_vEnv #Activate the env of your choice
conda list #This will give you list of all currently installed packages
conda install -c conda-forge fbprophet #This did the trick to install package i needed