I have the same problem when trying to update my CyberPanel on 6/1/2023, did you manage to solve it? Note: I still have many GB free.
Installing collected packages: six, pycparser, cffi, cryptography, pyOpenSSL, setuptools, pytz, pyRFC3339, josepy, idna, certifi, charset-normalizer, urllib3, requests, requests-toolbelt, acme, asgiref, asn1crypto, Babel, backports.ssl-match-hostname, bcrypt, soupsieve, beautifulsoup4, jmespath, python-dateutil, botocore, s3transfer, boto3, cachetools, chardet, jsonlines, pyyaml, cloudflare, ConfigArgParse, configobj, decorator, sqlparse, Django, websocket-client, docker, docker-pycreds, docutils, enum34, filelock, funcsigs, future, protobuf, googleapis-common-protos, pyasn1, pyasn1-modules, rsa, google-auth, google-api-core, httplib2, google-auth-httplib2, uritemplate, google-api-python-client, oauthlib, requests-oauthlib, google-auth-oauthlib, ipaddress, IPy, MarkupSafe, Jinja2, jsonpointer, jsonpatch, mock, mysqlclient, PyNaCl, paramiko, parsedatetime, pbr, pysftp, ptyprocess, pexpect, wcwidth, prettytable, psutil, py3dns, pygpgme, pyotp, pyudev, pyxattr, requests-file, tldextract, tornado, validators
ERROR: Could not install packages due to an EnvironmentError: [Errno 28] No space left on device: ‘/usr/lib/python3.8/site-packages’