Python20 does'nt work in a DOS-Box

Fredrik Lundh effbot at telia.com
Wed Sep 27 19:19:48 CEST 2000


Wester wrote:
> I installed Python2.0b2. When I start it in a DOS-Box following happens:
> 
> >>> import sys <RET>
>    File "<stdin>", line 1
>    import sys
>                   ^
> SystaxError: invalid syntax
> >>>

SystaxError?  did you cut and paste that error message?

if not, maybe you accidentally typed space (or tab) before the
"import" statement:

    >>>  import sys
      File "<stdin>", line 1
        import sys
        ^
    SyntaxError: invalid syntax
    >>>

</F>





More information about the Python-list mailing list