I have a pygame project I am trying to compile to an exe file. I have a spec file, which looks like this:
# -*- mode: python -*-
block_cipher = None
a = Analysis(['main.py'],
pathex=['C:\\Users\\vedant\\PycharmProjects\\pygame\\Blackjack'],
binaries=None,
datas=None,
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
Tree('Resources', prefix='data'),
a.scripts,
a.binaries,
a.zipfiles,
name='blackjack',
a.datas,
debug=False,
strip=False,
upx=True,
console=False )
But when I run, I get an error UPX is not available. What is wrong here?