Offline installation for Python Packages

Hi,

I am perfoming an offline install for python extension: Create a New Python based KNIME Extension

Step 5: On the target offline system set the environment variable KNIME_PYTHON_PACKAGE_REPO_URL to the folder with the downloaded packages.

I dont really know where to set the environment variable KNIME_PYTHON_PACKAGE_REPO_URL can come anyone share a screenshot of where to set this? Thanks!

Hmm. I think you may have to do that via command line…

Are you on windows?

If so try this:

In your search bar, search for “Powershell” and open it:

In the command line window type (replace yourrepourl with the URL):

 setx KNIME_PYTHON_PACKAGE_REPO_URL yourrepourl

Hit enter…

You should see a confirmation that the value was saved:

image

4 Likes

i am on windows, but my laptop has powershell disabled. Is there any other non powershell method to do this? Thanks!

any where that i can set or configure withint knime app?

I don’t think you can do this inside of KNIME.

you can search for cmd and try the same with the set command.

I think syntax is:

 set KNIME_PYTHON_PACKAGE_REPO_URL=yourrepourl

I take you are on a company managed device?

If so I think the chances are slim that without elevated privileges on your machine you’ll be able to set an environment variable… From my corporate past I recall having quite “enticing” and at times heated discussions with my IT as to why they should elevate my privileges (pretty much give me admin permissions temporarily…)

1 Like

ok i manage to set that up. what else i need to do? how i know its working now? Anyway to check from within knime app?

I actually never had to do this before, but reading through the instructions I think once you have set this variable you should be able to add your offline update site to the KNIME installation on the machine w/o internet access.

Once you have done that you should be able to find that extension when you go Menu => Install Extensions. When you then install it, it should work afterwards… (i.e. you should be able to use the nodes from your extension on that machine w/o internet access.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.