Unable to initialize device PRN in Python

前端 未结 8 1303
盖世英雄少女心
盖世英雄少女心 2021-02-07 01:22

I attempt to run a python program and the following pops up in command prompt:

\"Unable to initialize device PRN\"

I should also mention that the program runs fi

8条回答
  •  说谎
    说谎 (楼主)
    2021-02-07 01:55

    I had this same problem when I accidentally typed "print program.py" instead of "python program.py". The error message comes from the Windows command-line program named print. Those who suggested restarting the command prompt probably committed the same typo without noticing, and corrected it in their new command prompt.

提交回复
热议问题