Python error “import: unable to open X server”

前端 未结 3 455
北荒
北荒 2020-12-30 18:28

I am getting the following errors when trying to run a piece of python code:

import: unable to open X server `\' @ error/import.c/ImportImageCommand/366.
fro         


        
3条回答
  •  滥情空心
    2020-12-30 19:18

    Check whether your #! line is in the first line of your python file. I got this error because I put this line into the second line of the file.

提交回复
热议问题