-
Notifications
You must be signed in to change notification settings - Fork 74
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.
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.
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.gzmkdir -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, oncepython -c "import pcntoolkit; print('ok')"See ok? Done.
source ~/envs/<env-name>/bin/activate