We are celebrating the 10-year anniversary of the Alteryx Community! Learn more and join in on the fun here.
Start Free Trial

Alteryx Designer Desktop Discussions

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

Install a Python library from a path

FDJ
6 - Meteoroid

Hi,

 

I am trying to install (or just import?) a Python library that is currently installed locally.

 

The library is a corporate one, so I can´t directly install it through Package.installPackages(['']) call.

 

Suppose the path was: 'C:\\Temp\\athpkgs\\hyda.pyc' --> got this from doing 'hyda.__file__' in python

 

How can I use this library in Alteryx python tool?

 

 

4 REPLIES 4
pedrodrfaria
13 - Pulsar

Hi @FDJ 

 

If it is already installed, you should be able to just call it/import it. 

 

Ex: from selenium import webdriver

Ex: import pandas as pd

 

Pedro.

FDJ
6 - Meteoroid

It's not recognized as a module, so I would need to properly install or make the appropriate call to the library

pedrodrfaria
13 - Pulsar
PhilipMannering
16 - Nebula
16 - Nebula

Hi @FDJ ,

 

I think this might be what you're looking for,

PhilipMannering_0-1617098596394.png

To copy and paste,

from ayx import Alteryx
hydra = Alteryx.importPythonModule('C:\\Temp\\athpkgs\\hyda.pyc')
Labels
Top Solution Authors