Alteryx Designer

Find answers, ask questions, and share expertise about Alteryx Designer.
Register for the upcoming Live Community Q&A Session - and don't forget to submit your questions for @DeanS regarding the future role of analytics here.
SOLVED

Installing new Python Packages

Highlighted
9 - Comet

Hi -

 

I'm trying to install pyautogui using Package.installPackages("pyautogui"). After installing some dependencies, the script fails with output

 

running install_lib
    copying build\lib\pymsgbox\native.py -> c:\program files\alteryx\bin\miniconda3\pythontool_venv\Lib\site-packages\pymsgbox
    error: could not create 'c:\program files\alteryx\bin\miniconda3\pythontool_venv\Lib\site-packages\pymsgbox\native.py': Permission denied

followed by 

 

CalledProcessError: Command '['c:\\program files\\alteryx\\bin\\miniconda3\\pythontool_venv\\scripts\\python.exe', '-m', 'pip', 'install', 'pyautogui']' returned non-zero exit status 1.

 I am an administrator on my machine and have the administrator version of Alteryx 2018.4 installed. Any ideas what is going on here?

Highlighted
ACE Emeritus
ACE Emeritus

Hi,


Just a hunch, but try right clicking on Alteryx Designer and choosing "Run as administrator".  I've found that the python tool sometimes requires Alteryx itself to be run in an elevated state to achieve these permissions.

Highlighted
9 - Comet

Oh dang, thank you. I'm sure I've installed packages before without needing that, but maybe this one needed special permissions? Anyway, worked perfectly!

Labels