Python360 Installation
Prerequisites
-
RHEL/CentOS or Ubuntu/Debian server
-
sudo access
-
SSL certificate and private key files
Installation
-
Get the source code
Clone or copy the python360 directory to the server at the default location:
/var/www/pcr360/python360
Then navigate to it:
cd /var/www/pcr360/python360
-
Generate the service file
The installer auto-detects your OS (RHEL or Ubuntu/Debian). Provide paths to your SSL certificate and key.
sudo bash generate_service.sh --cert /path/to/cert.crt --key /path/to/key.key
Not sure where your certs are? Run:
sudo bash generate_service.sh
with no arguments — it will display available certificate pairs.
Optional flags:
-
--workers N — number of worker processes (default: 16)
-
--install-dir /custom/path — override the default install path (/opt/python360)
-
--os debian|redhat — force a specific OS if auto-detection fails
-
Install the service
sudo bash install_service.sh -
Update PCR-360 INI constants
constants.PYTHON360_CERT_PATH = '/path/to/key.key' constants.PYTHON360_KEY_PATH = '/path/to/cert.crt' -
Verify the service is running
sudo systemctl status python360
Common Commands
sudo systemctl start python360
sudo systemctl stop python360
sudo systemctl restart python360
Troubleshooting
EACCES permission error (typically SELinux on RHEL):
sudo setsebool -P httpd_can_network_connect 1
Not Enough Space in /tmp During Installation
Why this happens
Many servers mount /tmp as a tmpfs filesystem backed by RAM, which is often only 1–2 GB. The Python360 installation downloads large packages (PyTorch, TensorFlow, etc.) that can exceed 1.5 GB in temp/cache files alone. When pip uses /tmp for extraction and staging, the install failswith:
OSError: [Errno 28] No space left on device
How to fix it
Use the --tmp-dir and/or --pip-cache-dir flags to redirect pip's working files to a partition with more space (typically the root partition):
Use built-in defaults (/opt/python360/tmp and /opt/python360/.pip-cache)
sudo bash install_service.sh --tmp-dir --pip-cache-dir
Or specify custom paths on a partition with sufficient space
sudo bash install_service.sh --tmp-dir /var/tmp/python360 --pip-cache-dir /var/tmp/python360-cache
Both directories are created automatically and deleted when the installation completes.
Check available space before installing
df -h /tmp # Check tmpfs space
df -h /opt # Check target partition space (needs ~3 GB free)
If /opt is also limited, point to whichever mounted partition has the most free space.