In this case, only the package argument is specified. %ALTERYXDIR%\bin\miniconda3\envs\jupytertool_venv\python.exe -m pip install loggerĪlteryx.installPackage(package="logger",debug=True) Output (duplicates due to debug mode): Executing subprocess: install logger Collecting logger Installing collected packages: logger Successfully installed logger-1.4 Collecting logger Installing collected packages: logger Successfully installed logger-1.4 %ALTERYXDIR%\bin\miniconda3\pythontool_venv\scripts\python.exe -m pip install logger In reality, Alteryx.installPackages() is nothing more than a wrapper for the pip (Python Package Manager) command. Pip command to use.Īlteryx.installPackages(package, install_type=None, debug=None, **kwargs) But, looking at the method itself, there are in fact 3 parameters:Ī string or list of strings of package name(s) Typically, people use installPackage() with a single argument (the package name(s)). %ALTERYX%\bin\Miniconda3\envs\JupyterTool_vEnv\Lib\site-packages for 2019.3 Ĭ:\Program Files\Alteryx\bin\Miniconda3\PythonTool_venvĪs a result, you may need to start Designer with administrator rights if the installation folder does not allow write access to a standard account, like for an admin version for example. %ALTERYX%\bin\Miniconda3\PythonTool_venv\Lib\site-packages until 2019.2 In this article, we will review all the possible functionality included with the Python method Alteryx.installPackages().įirst of all, don't get confused: you can use either Alteryx.installPackage(), Alteryx.installPackages(), or Package.installPackages() to achieve same result.īy default, packages are installed under: Installing a package from the Python tool is an important task. How To: Use Alteryx.installPackages() in Python tool
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |