Serhiy Storchaka added the comment:
pyc files are not executable files. If you can run it on your machine it means
that you have installed some loader hook which allow you to run files which are
not machine executable files and not shell scripts. It seems it is not
installed on your other ma
New submission from Vladimir :
I have problem to run pyc file on one machine with Ubuntu Server 18.04.4 LTS.
This is my source code of the file:
#!/root/PycharmProjects/Project/venv/bin/python3.7
print("Hi")
When I compile it in python console with commands:
import py_compile
py_compile.compi