简体   繁体   中英

cx_Freeze: Python error main script. Module not found error: no module named pygments.lexers.python

I am trying to create a file .exe from a .py file with cx_Freeze . I had successifully build the setup file but when I run the .exe file, it returns me this error:

-I tried to install again Python

-I tried to update pygments but it says that the requirements are already satisfied

Any suggestions? Help this poor newborn programmer

You need to manually include missing module in cx freeze packages. Refer answer here for example code -

How do I convert my pygame program which has multiple python scripts and images to a exe?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM