Compiling Blender - Python Error I'm a noob when it comes to compiling. I've followed the instructions for compiling Blender on OpenSuse Linux.
https://wiki.blender.org/wiki/Building_Blender/Linux/OpenSUSE
I downloaded the sources.
I downloaded the libraries.
But when I follow the Update and Build instructions
cd /home/myprofile/bin/blender-git/blender/
make update

I'm given the following error:
python3 ./build_files/utils/make_update.py
Python path configuration:
  PYTHONHOME = (not set)
  PYTHONPATH = '/usr/local/lib/python:/usr/lib64/python/'
  program name = 'python3'
  isolated = 0
  environment = 1
  user site = 1
  import site = 1
  sys._base_executable = '/usr/bin/python3'
  sys.base_prefix = '/usr'
  sys.base_exec_prefix = '/usr'
  sys.executable = '/usr/bin/python3'
  sys.prefix = '/usr'
  sys.exec_prefix = '/usr'
  sys.path = [
    '/usr/local/lib/python',
    '/usr/lib64/python/',
    '/usr/lib/python38.zip',
    '/usr/lib64/python3.8',
    '/usr/lib64/python3.8/lib-dynload',
  ]
Fatal Python error: init_fs_encoding: failed to get the Python codec of the filesystem encoding
Python runtime state: core initialized
  File &quot;/usr/lib64/python/encodings/__init__.py&quot;, line 123
    raise CodecRegistryError,\
                            ^
SyntaxError: invalid syntax

Current thread 0x00007f9baaa00740 (most recent call first):
&lt;no Python frame&gt;
make: *** [GNUmakefile:504: update] Error 1
The issue is caused by the PYTHONPATH. It seems that /usr/lib64/python/ points to the libraries of Python 2.7, which results in the aforementioned error. The PYTHONPATH environment variable can be temporarily removed for the current terminal with the command unset PYTHONPATH after which you should be able to run make update successfully.