pytorch / tnt

A lightweight library for PyTorch training tools and utilities
https://pytorch.org/tnt/
Other
1.66k stars 271 forks source link

Installation error #138

Closed vandana-rajan closed 2 years ago

vandana-rajan commented 2 years ago

Hi,

I have a conda env in a remote machine with pytorch installed, version 1.9.0. I do not have sudo privileges in the machine.

I tried pip install torchnet. This gives me the error

WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f56c93d4080>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torchnet/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f56c93d4320>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torchnet/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f56c93d4470>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torchnet/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f56c93d45c0>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torchnet/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7f56c93d4710>: Failed to establish a new connection: [Errno -2] Name or service not known')': /simple/torchnet/ ERROR: Could not find a version that satisfies the requirement torchnet (from versions: none) ERROR: No matching distribution found for torchnet

Then I tried, pip install git+https://github.com/pytorch/tnt.git@master

Collecting git+https://github.com/pytorch/tnt.git@master Cloning https://github.com/pytorch/tnt.git (to revision master) to /tmp/pip-req-build-nua4orm3 Running command git clone -q https://github.com/pytorch/tnt.git /tmp/pip-req-build-nua4orm3 fatal: unable to access 'https://github.com/pytorch/tnt.git/': Could not resolve host: github.com; Unknown error WARNING: Discarding git+https://github.com/pytorch/tnt.git@master. Command errored out with exit status 128: git clone -q https://github.com/pytorch/tnt.git /tmp/pip-req-build-nua4orm3 Check the logs for full command output. ERROR: Command errored out with exit status 128: git clone -q https://github.com/pytorch/tnt.git /tmp/pip-req-build-nua4orm3 Check the logs for full command output.

Could anyone guide me on how to solve this and install torchnet?

Thanks, VR

vandana-rajan commented 2 years ago

I disconnected from wifi, connected with mobile hot-spot and I could successfully install with 'pip install torchnet'. However, I would like to understand what was the reason of installation failure using wifi. Kindly let me know if anyone knows.