Python code for listing installed packages on HTCondor
Python code for listing all installed Python packages.
Adding packages to Anaconda Python 2.7.5
- module load python/2.7.5
- mkdir python27_packages
- export PYTHONPATH=$(pwd)/python27_packages
- pip install --target=python27_packages <python_package1>
- pip install --target=python27_packages <python_package2>
- condor_submit submit_python27_listpackages.txt
using the following HTCondor submit file.
Adding packages to Anaconda Python 3.7.12
- module load python/3.7.12
- mkdir python3712_packages
- export PYTHONPATH=$(pwd)/python3712_packages
- pip install --target=python3712_packages <python_package1>
- pip install --target=python3712_packages <python_package2>
- condor_submit submit_python3712_listpackages.txt
using the following HTCondor submit file.
Adding packages to Anaconda Python 3.8.12
- module load python/3.8.12
- mkdir python3812_packages
- export PYTHONPATH=$(pwd)/python3812_packages
- pip install --target=python3812_packages <python_package1>
- pip install --target=python3812_packages <python_package2>
- condor_submit submit_python3812_listpackages.txt
using the following HTCondor submit file.
Adding packages to Anaconda Python 3.9.7
- module load python/3.9.7
- mkdir python397_packages
- export PYTHONPATH=$(pwd)/python397_packages
- pip install --target=python397_packages <python_package1>
- pip install --target=python397_packages <python_package2>
- condor_submit submit_python397_listpackages.txt
using the following HTCondor submit file.
Adding packages to Anaconda Python 3.10.2
- module load python/3.10.2
- mkdir python3102_packages
- export PYTHONPATH=$(pwd)/python3102_packages
- pip install --target=python3102_packages <python_package1>
- pip install --target=python3102_packages <python_package2>
- condor_submit submit_python3102_listpackages.txt
using the following HTCondor submit file.