Can I install python package from .whl file?

Options
mi6crazyheart
mi6crazyheart Registered Posts: 7 ✭✭✭

Hi,

New to DSS. I want to know, can I install a Python package from ".whl"(wheel) file in my Python code environment? I checked the documentation but didn't get any such info.

I've one ".whl" file from which I need to install some dependencies to my Python code environment.

Thanks


Operating system used: Windows

Tagged:

Best Answer

  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts Posts: 365 Dataiker
    Answer ✓
    Options

    Hi @mi6crazyheart

    Yes, you can put this file somewhere on DSS server file system and specify a full path to it in the code env requirements.

Answers

  • mi6crazyheart
    mi6crazyheart Registered Posts: 7 ✭✭✭
    Options

    Thanks. It worked.

  • kasuteru
    kasuteru Registered Posts: 1
    Options

    What exactly do you mean by server file system? Can I do this as a "normal" user or do I need to be an admin for this? Can I have a wheel file as a normal code user?

    Edit: I think I found it. For future users:

    - In your project flow, select +Dataset -> Folder

    - Upload the wheel file to the folder

    - Find out the connection / exact path by typing this into a notebook:

    folder = dataiku.Folder("my_wheel")
    folder.get_path()
    folder.list_paths_in_partition()

    Copy & paste the last two together and paste them into the env package list, it's that simple!

Setup Info
    Tags
      Help me…