omegaconf icon indicating copy to clipboard operation
omegaconf copied to clipboard

Installing from sources

Open bstaber opened this issue 4 years ago • 2 comments

Describe the bug Hello, I'm trying to install omegaconf from sources on a cluster without internet access. When I run the installation, I get the following message: error: can't copy 'omegaconf.egg-info/PKG-INFO': doesn't exist or not a regular file.

I'm wondering if I should change something in the setup.py file.

Note: I'm not a root user.

To Reproduce Download the sources (https://pypi.org/project/omegaconf/#files), extract files then run python3 setup.py install --prefix=$PREFIX

Thanks for your help.

bstaber avatar Dec 06 '21 10:12 bstaber

Thanks for reporting @bstaber. We will look into this.

Jasha10 avatar Dec 06 '21 15:12 Jasha10

@bstaber a workaround is to use pip install . instead of running setup.py directly.

Installing from source using pip:

$ wget https://files.pythonhosted.org/packages/91/80/c9268fedb0d63ddf7dfa4352070f8cfecf2b0443df7737462c3ab0437c11/omegaconf-2.1.1.tar.gz
...
$ tar -xzf omegaconf-2.1.1.tar.gz
$ cd omegaconf-2.1.1/
$ pip install .
...

Installing from a wheel using pip:

$ wget https://files.pythonhosted.org/packages/66/c8/7ef11e12f3844b210add2e003abf8a0c7981ce7b5553dc630b635e7b905e/omegaconf-2.1.1-py3-none-any.whl
...
$ pip install omegaconf-2.1.1-py3-none-any.whl
...

Cross-link: #772.

Jasha10 avatar Dec 10 '21 15:12 Jasha10

Closing as the solution is to use pip and not setup.py.

omry avatar Apr 22 '23 19:04 omry