After running upgrade

Exception:
Traceback (most recent call last):
File “/usr/lib/python3.6/site-packages/pip/basecommand.py”, line 215, in main
status = self.run(options, args)
File “/usr/lib/python3.6/site-packages/pip/commands/install.py”, line 311, in run
delete=build_delete) as build_dir:
File “/usr/lib/python3.6/site-packages/pip/utils/build.py”, line 22, in init
name = os.path.realpath(tempfile.mkdtemp(prefix=“pip-build-”))
File “/usr/lib64/python3.6/tempfile.py”, line 360, in mkdtemp
prefix, suffix, dir, output_type = _sanitize_params(prefix, suffix, dir)
File “/usr/lib64/python3.6/tempfile.py”, line 130, in _sanitize_params
dir = gettempdir()
File “/usr/lib64/python3.6/tempfile.py”, line 298, in gettempdir
tempdir = _get_default_tempdir()
File “/usr/lib64/python3.6/tempfile.py”, line 233, in _get_default_tempdir
dirlist)
FileNotFoundError: [Errno 2] No usable temporary directory found in [’/tmp’, ‘/var/tmp’, ‘/usr/tmp’, ‘/root/cyberpanel_upgrade_tmp’]