0

I have compiled a python script file using easycython. using below syntax. easycython encrypt.py

Above script created .pyd file "encryption.cp38-win_amd64.pyd" But when trying to execute file using python using below syntax

python encryption.cp38-win_amd64.pyd 

I am getting below error.

SyntaxError: Non-UTF-8 code starting with '\x90' in file encryption.cp38-win_amd64.pyd on line 1, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details

if I tried to run the .py file it executed as expected. Can anyone help how to run .pyd in windows environment or .so in linux environment.

user3734568
  • 1,311
  • 2
  • 22
  • 36
  • 1
    pyd files are typically library files and not directly runable (but rather you import from them) ... that said knowing python there probably is some trick to run it as a script (but thats not really the intent) – Joran Beasley Sep 07 '21 at 07:30
  • @JoranBeasley Thanks for your reply and sharing inputs. have used import to get required details from pyd files. – user3734568 Sep 07 '21 at 12:03

0 Answers0