Skip to content

Install PCNtoolkit on a cluster with no internet

Konstantinos Tsilimparis edited this page Jun 30, 2026 · 3 revisions

The problem: Your cluster has no internet, so pip install pcntoolkit won't work.

The fix: Take the environment you already built on a cluster with internet, zip it into one file, and copy that file over.

1. Check the two clusters match

This only works if the two clusters are compatible. Run on both and compare:

uname -m                  # processor type, e.g. x86_64
ldd --version | head -1   # system library version, e.g. 2.31
  • Processor type must be identical (both x86_64). A program built for one chip won't run on another.
  • The offline cluster's library number must be equal or higher. Newer can run older programs; older can't run newer ones.

The Linux brand (Ubuntu, CentOS...) doesn't matter.

2. Pack it (cluster with wifi access)

Replace <env-name> with the name of your conda environment (e.g. the one you use for PCNtoolkit).

pip install conda-pack
conda pack -n <env-name> -o <env-name>.tar.gz

3. Copy <env-name>.tar.gz to the offline cluster

4. Unpack it (offline cluster)

mkdir -p ~/envs/<env-name>
tar -xzf <env-name>.tar.gz -C ~/envs/<env-name>
source ~/envs/<env-name>/bin/activate
conda-unpack      # fixes file paths, runs offline, once

5. Test

python -c "import pcntoolkit; print('ok')"

See ok? Done.

6. Run that every time you connect to the cluster

source ~/envs/<env-name>/bin/activate

Clone this wiki locally