Alteryx Designer Desktop Discussions

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

Can we upgrade a python package?

lagisettya
7 - Meteor

Is it possible to upgrade a python package like pandas in Alteryx? I tried this but it dint work.

 

Package.installPackages(package='pandas',install_type='install --upgrade')

 

2 REPLIES 2
Felipe_Ribeir0
16 - Nebula

Hi @lagisettya 

 

Yes, it is possible. Why it didnt work for you? Can you share the errors that you got?

 

Take a look at this topic:

How To: Use Alteryx.installPackages() in Python to... - Alteryx Community

 

You can use this command to install specific versions:

from ayx import Package 
Alteryx.installPackage("logger==1.3")

 

Or this one, to upgrade the package:

from ayx import Package
Package.installPackages(['pandas'],install_type="install --upgrade-strategy only-if-needed")

It is a good idea to start Alteryx as admin before using them.

lagisettya
7 - Meteor

Thank you @Felipe_Ribeir0 . It worked with this Alteryx.installPackage("logger==1.3") . I wish these details are mentioned on documentation.

Labels