Alteryx Designer Desktop Discussions

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

Python Tool : How to install additional package from github ?

kantawee
7 - Meteor

Python Tool : How to install additional package from github ?

I cannot install python package in  https://github.com/facebookresearch/pysparnn 

Please, Help to solve this problem T_T

9 REPLIES 9
PaulN
Alteryx Alumni (Retired)

Hi @kantawee,

 

Thank you for posting this question!

 

Option 1:

 

from Python tool:

 

from ayx import Alteryx
Alteryx.installPackages(package="git+https://github.com/facebookresearch/pysparnn.git")

 

Source: https://community.alteryx.com/t5/Alteryx-Knowledge-Base/How-To-Use-Alteryx-installPackages-in-Python...

 

Option 2:

 

  1. Open Command Prompt as administrator (not necessary for Alteryx Designer non-admin)
  2. Enter the following:

For Designer admin:

 

cd "%PROGRAMFILES%\Alteryx\bin\Miniconda3\PythonTool_venv\Scripts"
pip install git+https://github.com/facebookresearch/pysparnn.git

 

 

For Designer non-admin:

cd "%LOCALAPPDATA%\Alteryx\bin\Miniconda3\PythonTool_venv\Scripts"
pip install git+https://github.com/facebookresearch/pysparnn.git

 

Example:

 

pysparnn.png

 

Thanks,

 

Paul Noirel

Sr Customer Support Engineer, Alteryx

 

 

kantawee
7 - Meteor

@PaulN

Thanks PaulN, I success to install  https://github.com/facebookresearch/pysparnn.git .

-
-

but, I cannot install package in https://github.com/rkcosmos/deepcut. I install success in command prompt, but I cannot import this package in Python Tool in Alteryx Designer.

How to config this? please... @PaulN

thanks



deepcut.PNGdeepcut1.PNGdeepcut2.PNG

PaulN
Alteryx Alumni (Retired)

Hi @kantawee,

 

Is module tensorflow installed on your machine ? 

 

Kind regards,

 

Paul Noirel

Sr Customer Support Engineer, Alteryx

kantawee
7 - Meteor

@PaulN

I already installed Tensorflow. ,but now, i cannot import tensorflow in Python Tool. 

PaulN
Alteryx Alumni (Retired)

Hi @kantawee,

 

Could you post the full error message from Python tool ?

If it's still cut, then start  D:\Alteryx\bin\Miniconda3\PythonTool_venv\Scripts\python.exe and enter import deepcut to see the full message.

 

Thanks,

 

Paul Noirel

Sr Customer Support Engineer, Alteryx

kantawee
7 - Meteor
PaulN
Alteryx Alumni (Retired)

Thanks @kantawee,

 

It seems that you are missing a DLL to run tensorflow - based on end of the error message. Could you please follow the instructions to install it and update this post based on your result ?

 

Kind regards,

 

Paul Noirel

Sr Customer Support Engineer, Alteryx

jesandovala
5 - Atom
 

 Hi.

 

I have a similar problem when importing from keras.models import Sequential. 

What could i do to solve this error?

TimothyL
Alteryx Alumni (Retired)

@jesandovala  @kantawee

 

Can both of you try reinstalling Tensorflow in 1.10 version with the following step? There is an issue on the tensorflow 1.12 version.

 

Steps:

- Run Alteryx as administrator

- Open Python Tool and import Alteryx

- run: Alteryx.installPackages("tensorflow==1.10.0")

- rerun the keras code

 

https://github.com/tensorflow/tensorflow/issues/22872

 

Labels