cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Having trouble installing my own Python wheel?

397973
New Contributor III

I want to install my own Python wheel package on a cluster but can't get it working. I tried two ways: 

I followed these steps: https://docs.databricks.com/en/workflows/jobs/how-to/use-python-wheels-in-workflows.html#:~:text=Mar....

but it failed on #8 of Step 5, "In the Add dependent library dialog, with Workspace selected, drag the my_test_package-0.0.1-py3-none-any.whl file created in step 4 into the dialog’s Drop file here area"

l created the wheel in the previous steps but the Workspace dialog doesn't have "Drop file here". I also uploaded the wheel to Workspace but it doesn't allow me to select it.

I also tried this: https://docs.databricks.com/en/libraries/notebooks-python-libraries.html

In the step: 

%pip install /Workspace/Users/myname@mycompany.com/my_test_package-0.0.1-py3-none-any.whl

It said 

ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/Workspace/Users/myname@mycompany.com/my_test_package-0.0.1-py3-none-any.whl'

even though I see the wheel there. 

Is there another way? What I have is pretty simple, just custom functions. I was hoping this would be easier.

 

 

 

3 REPLIES 3

shan_chandra
Databricks Employee
Databricks Employee

@397973 - Once you uploaded the .whl file, did you had a chance to list the file manually in the notebook? 

Also, did you had a chance to move the files to /Volumes .whl file?

 

397973
New Contributor III

Actually, no I can't even find it. I see it in the browser Workspace, but when I do "%ls" it shows

azure/

eventlogs/

logs/

conf/

hadoop_accessed_config.lst*

preload_class.lst*

shan_chandra
Databricks Employee
Databricks Employee

@397973 - can you please copy the relative file path from the UI and use them as a dependent library in your cluster? 

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group