Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.
Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Python tool - HELP

josephatnjoroge
6 - Meteoroid

Hello Guys,
I am scratching my head because I am trying to install pycaret package using the python tool. I have tried running the Alteryx Designer as administrator but the error still surfaces. I have attached the workflow that I am currently using. 

Kindly help me fix this bug. I will appreciate it.


Error: Python (12): ---------------------------------------------------------------------------

CalledProcessError Traceback (most recent call last)
<ipython-input-2-0bcc5dcb1cbc> in <module>
1 # install pycaret
2 from ayx import Package
----> 3 Package.installPackages('pycaret')
4 # read data from input data tool
5 from ayx import Alteryx
c:\program files\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\site-packages\ayx\Package.py in installPackages(package, install_type, debug)
200 print(pip_install_result["msg"])
201 if not pip_install_result["success"]:
--> 202 raise pip_install_result["err"]
c:\program files\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\site-packages\ayx\Utils.py in runSubprocess(args_list, debug)
118
119 try:
--> 120 result = subprocess.check_output(args_list, stderr=subprocess.STDOUT)
121 if debug:
122 print("[Subprocess success!]")
c:\program files\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\subprocess.py in check_output(timeout, *popenargs, **kwargs)
409 kwargs['input'] = '' if kwargs.get('universal_newlines', False) else b''
410
--> 411 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
412 **kwargs).stdout
413
c:\program files\alteryx\bin\miniconda3\envs\designerbasetools_venv\lib\subprocess.py in run(input, capture_output, timeout, check, *popenargs, **kwargs)
510 retcode = process.poll()
511 if check and retcode:
--> 512 raise CalledProcessError(retcode, process.args,
513 output=stdout, stderr=stderr)
514 return CompletedProcess(process.args, retcode, stdout, stderr)
CalledProcessError: Command '['c:\\program files\\alteryx\\bin\\miniconda3\\envs\\designerbasetools_venv\\python.exe', '-I', '-m', 'pip', 'install', 'pycaret']' returned non-zero exit status 1.

 

1 REPLY 1
FilipR
11 - Bolide

Please try installing the package from the command prompt.

 

You have a detailed instruction here.

https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/Install-Python-packages-via-command...

 

It worked for me, but I got some compatibility errors since I am using an older version of Alteryx (the required Python packages weren't updated). 

 

FilipR_0-1659123902952.png

 

Let me know if it worked for you.

Labels
Top Solution Authors