HPE Morpheus Enterprise
1827757 Members
3176 Online
109969 Solutions
New Discussion

How to use Python additional packages without an internet connection?

 
SOLVED
Go to solution
Not applicable

How to use Python additional packages without an internet connection?

python task additionalPackages unable to install as app server doesnt have internet connection Screen Shot on 2022-05-13 at 14-10-32.png - Droplr

we have installed them manually. On app server we have python3 installed and pip freeze shows the requests module.

su to morpheus-local  and pip freeze shows requests 

25 REPLIES 25
Not applicable

Re: How to use Python additional packages without an internet connection?

There is a way

Not applicable

Re: How to use Python additional packages without an internet connection?

1c9fe71b242e036a4a9e416e4c70d608eb40cc15.gif
Not applicable

Re: How to use Python additional packages without an internet connection?

Not applicable

Re: How to use Python additional packages without an internet connection?

I defer to the python prime minister nick on this one

Not applicable

Re: How to use Python additional packages without an internet connection?

3

Not applicable

Re: How to use Python additional packages without an internet connection?

But feel free to throw rubies at me any day

Not applicable

Re: How to use Python additional packages without an internet connection?

Lol pretty much

Not applicable

Re: How to use Python additional packages without an internet connection?

Not applicable

Re: How to use Python additional packages without an internet connection?

replace with the path where the packages are kept

Not applicable

Re: How to use Python additional packages without an internet connection?

that’s an option to virtualenv. one sec

Not applicable

Re: How to use Python additional packages without an internet connection?

If you’ve still got the files you used to install requests and it’s dependencies, you can specify the filenames as the additional packages and pip will install them from the files

Not applicable

Re: How to use Python additional packages without an internet connection?

Yeah, it’s a switch to virtualenv, which we can’t modify. One sec

Not applicable

Re: How to use Python additional packages without an internet connection?

You cant since we use virtualenv

Not applicable

Re: How to use Python additional packages without an internet connection?

we installed requests via yum

Not applicable

Re: How to use Python additional packages without an internet connection?

Anish Abraham what's the python version? 2 or 3?
Not applicable

Re: How to use Python additional packages without an internet connection?

is there a way to import from sys?

Not applicable

Re: How to use Python additional packages without an internet connection?

Brilliant, that worked

Not applicable

Re: How to use Python additional packages without an internet connection?

cool, trying that

Not applicable

Re: How to use Python additional packages without an internet connection?

Ah, yeah, because a new virtualenv is created when the task is run.

Not applicable

Re: How to use Python additional packages without an internet connection?

Begin the python script with this:
import sys
sys.path.append('/usr/lib/python3/dist-packages')
Not applicable

Re: How to use Python additional packages without an internet connection?

python3-requests

Not applicable

Re: How to use Python additional packages without an internet connection?

The packages are isolated

Not applicable

Re: How to use Python additional packages without an internet connection?

Are you putting requests in the the additional packages dialog when it’s already installed?

Not applicable

Re: How to use Python additional packages without an internet connection?

tried without requests in the additional packages and it fails with ModuleNotFound error