Daniel F
Daniel F

Reputation: 14399

Install non-conda packages in Anaconda on air-gapped machine

Trying to get pyNastran onto an air-gapped machine with a new install of Anaconda.

I've tried conda install pyNastran-0.7.1.zip on the zipped source code, and conda install setup.py inside the unzipped folder. Both commands cause conda to try to get "package metadata" from https://repo.continuum.io/pkgs and fail when they can't reach the server, despite this being the method suggested here.

python setup.py install fails due to setuptools not being installed, and installing setuptools through python fails, apparently due to setuptools not being installed (?!).

I must be doing something wrong here. How do I get this to install?

Upvotes: 1

Views: 1902

Answers (1)

Mike Müller
Mike Müller

Reputation: 85442

conda can only work with tar.bz2 files.

So, unzip pyNastran-0.7.1.zip and re-zip as pyNastran-0.7.1.tar.bz2 using some zipping tool.

Now, you need to tell conda to work offline with --offline:

conda install  --offline  pyNastran-0.7.1.tar.bz2

Upvotes: 4

Related Questions