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.
After installing a bunch of amazing Python libraries to use in your Python tool, are you seeing strange errors in your notebook, no matter what you try to do? To resolve these errors, your first idea might be to reinstall Designer completely. In this article, I would like to suggest 2 other options; restoring the Python libraries to their state following the installation, and resetting the Python tool completely.
Good to know:
Alteryx Designer installations include a file with copies of Python wheel files to reinstall the default python libraries if needed, which by default is located inf folder:
%ALTERYX_DIRECTORY%\bin\Miniconda3\PythonTool_Config\wheels (ex: C:\Program Files\Alteryx\bin\Miniconda3\PythonTool_Config\wheels) for 2018.3 - 2019.1
%ALTERYX_DIRECTORY%\bin\Miniconda3\Common_Config\wheels (ex: C:\Program Files\Alteryx\bin\Miniconda3\Common_Config\wheels) for 2019.2
This means that internet access is not required to reinstall the libraries!
The Python tool is installed in its own virtual Python environment, PythonTool_venv (default location: %ALTERYX_DIRECTORY%\bin\Miniconda3\PythonTool_venv). Because of this, libraries that have been installed for Python tool will not be available to other Python tools or instances of Python installed on the same machine.
How to Reinstall one library and its dependencies:
Warning: The following steps may break dependencies for any additional libraries you've installed for your Python tool.
1. Stop Alteryx Designer.
2. Open a command prompt (run the command prompt as an Administrator for an admin version of Designer or Server).
3. In the command prompt, navigate to the Alteryx Python folder.
For admin (default location of the folder):
cd "C:\Program Files\Alteryx\bin\Miniconda3\PythonTool_venv\Scripts"
For non-admin (default location of the folder):
4. Run a command to reinstall the library you need (in following examples we chose matplotlib). Note that dependencies will be reinstalled as well: