[Python] Python terminal based code is raising an : [Errno 22] Invalid argument

Discussão em 'Python' iniciado por Stack, Julho 26, 2025.

  1. Stack

    Stack Membro Participativo

    There is a problem when I use terminal based stuff in Python.

    (I use Windows with VS Code.)

    My code looks like this:

    import os
    os.system('C:/Users/.../Downloads/.../lib/python3.9/venv/scripts/nt')


    But there is an error:

    [Errno 22] Invalid argument


    The error is confusing, before every terminal based code could work fine but now it's always showing that or sometimes this:

    >>Why
    >>

    Continue reading...

Compartilhe esta Página