Python error “import: unable to open X server”

前端 未结 3 446
北荒
北荒 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:12

    I got this error when I tried to run my python script on docker with docker run. Make sure in this case that you set the entry point is set correctly:

    --entrypoint /usr/bin/python
    

提交回复
热议问题