Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing python libraries on a windows server without internet access. #765

Open
i4g8tt opened this issue May 24, 2024 · 5 comments
Open

Comments

@i4g8tt
Copy link

i4g8tt commented May 24, 2024

Problem description

I downloaded the file and after running pip install I get the following error

PS C:\Users\knowlesp104> python -m pip install C:\Users\knowlesp104\Downloads\glob2-0.7.tar.gz
Processing c:\users\knowlesp104\downloads\glob2-0.7.tar.gz
Installing build dependencies ... error
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [7 lines of output]
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
ror('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001F2B2563680>: Failed to establish a new connection: [Errno 11002] g
etaddrinfo failed')': /simple/setuptools/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
ror('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001F2B23B1370>: Failed to establish a new connection: [Errno 11002] g
etaddrinfo failed')': /simple/setuptools/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
ror('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001F2B2563DA0>: Failed to establish a new connection: [Errno 11002] g
etaddrinfo failed')': /simple/setuptools/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
ror('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001F2B2563FE0>: Failed to establish a new connection: [Errno 11002] g
etaddrinfo failed')': /simple/setuptools/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionEr
ror('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x000001F2B2594200>: Failed to establish a new connection: [Errno 11002] g
etaddrinfo failed')': /simple/setuptools/
ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)
ERROR: No matching distribution found for setuptools>=40.8.0
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
PS C:\Users\knowlesp104>

@merwok
Copy link

merwok commented May 24, 2024

Any distribution can have dependencies and/or build dependencies, as is the case here.
More preparation is needed for a successfull offline installation. What guide are you following?

@i4g8tt
Copy link
Author

i4g8tt commented May 26, 2024

@merwok I downloaded all my Python libraries from Pypi.org and I am following these instructions to install (https://packaging.python.org/en/latest/tutorials/installing-packages/).

I have to rely on a separate division at my job to download the required libraries ( and they downloaded a mix of compressed files and .whl extension files. Our computing environment is extremely rigid and I should have been more specific about my needs but it's my first time doing this. Here is a list of some of the Python libraries: glob2-0.7.tar.gz, Pandas.whl, jupyterlab.whl, os.whl, re, tkinter, and a few more. I currently have a mix of compressed files and a few files with the .whl extension.

@merwok
Copy link

merwok commented May 26, 2024

Quick notes:

@sinoroc
Copy link

sinoroc commented May 26, 2024

Maybe use a wheelhouse: https://pip.pypa.io/en/latest/topics/repeatable-installs/#using-a-wheelhouse-aka-installation-bundles

@i4g8tt
Copy link
Author

i4g8tt commented May 27, 2024

Thanks, @merwok and @sinoroc when I return to work I will do as suggested and provide some feedback as soon as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants