Dev Space

Customize and extend the power of Alteryx with SDKs, APIs, custom tools, and more.
SOLVED

Installing new Python Packages

StephenR
Alteryx
Alteryx

I am running into an issue when installing new packages to the Alteryx Miniconda environment.  The folders are set to read only, and I cannot change that property.  This leads to the following error.

Capture.JPG

 

What do I need to do to install new packages?

 

Regards,
Stephen Ruhl
Principal Customer Support Engineer

4 REPLIES 4
StephenR
Alteryx
Alteryx

I've solved my own problem. Basically this stems from my unfamiliarity with Anaconda/Miniconda and the condas environment.  I had to create a new environment and was able to install the packages into that new environment.

 

conda create --name YOURNAMEHERE python=3.6

This will create a new environment with your environment name in C:\Program Files\Alteryx\bin\Miniconda3\envs\YOURNAMEHERE.

 

NOTE: It will complain about a space in the path due to it being located in the Program Files directory.

 

Regards,
Stephen Ruhl
Principal Customer Support Engineer

DavidM
Alteryx
Alteryx
VitalyD
5 - Atom

Hi,

 

Writing this just in case someone still gets issues installing new packages for Python tool on Windows.

In your Python tool there is a Menu on the top of configuration window, to the right from the menu you find a name of a virtual environment you are currently using. You can change the environment in the Menu->Kernel->Change kernel.

The listed kernels, i.e. virtual environments, will vary depending on your version of Alteryx.

If you do not need to have a particular environment, you may install new packages into one of the existing ones.

To do so you:

- run cmd.exe as Administrator,

- navigate to "C:\Program Files\Alteryx\bin\Miniconda3\Scripts"

- issue "conda info --envs" to get the list of the environments you have. Their names may be different from the ones in the Python tool, as they may contain Upper case symbols in the command line, as these are paths to the environments, while in the Python-tool the names are written with lower case only.

- issue "conda install -n <path to the environment from the list after issuing the previous command> <package name>", this installs the package in the environment and you do not need to activate it.

- go back to Alteryx and in the Python tool chose Menu->Kernel->Restart.

 

You can also check if the package has been installed in: c:\Program Files\Alteryx\bin\Miniconda3\envs\<environment name>\Lib\site-package

 

That should work.

TheOC
15 - Aurora
15 - Aurora

I also found that running Alteryx as Admin typically gets past most issues with installing Python packages - if you are able to.


Bulien