I wrote a python program on PyCharm, the code is shown in the picture 1. Then I created a .exe file for this program on PyCharm. I ran this .exe file on command prompt, it showed that ‘ ImportError: cannot import name ‘etree’ from ‘lxml’ ‘. This problem is shown in the picture 2. How can I solve this problem? Thank you.
picture 1
picture 2
1