Install a Python library from a path
Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
FDJ
6 - Meteoroid
03-22-2021
02:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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?
Labels:
- Labels:
- Python
4 REPLIES 4
pedrodrfaria
13 - Pulsar
03-22-2021
02:06 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
03-22-2021
02:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
03-22-2021
02:11 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
This post should give you a good idea:
16 - Nebula
03-30-2021
03:04 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi @FDJ ,
I think this might be what you're looking for,
To copy and paste,
from ayx import Alteryx
hydra = Alteryx.importPythonModule('C:\\Temp\\athpkgs\\hyda.pyc')
