简体   繁体   中英

problems running programs using the command terminal

So I'm determined to learn programming and I decided to start with Python and ChucK (audio language) but I'm having issues running things in the cmd terminal. I get Python to open in the terminal but when I try to run a program, I always get a syntax error indicating something wrong with the filename. I also encounter problems running ChucK through the command line. I can't further my learning like this and I need to resolve this. Running windows7 and python 2.7 Thanks!

:[1]: http://imagebin.org/index.php?mode=image&id=163567

First of all, your link should be http://imagebin.org/163567

You're managing to run the Python interpreter, then trying to again run Python from within that interpreter. Instead of what you've done, try just C:\Python27\python democodes.py at the command line from whatever directory democodes.py is in.

Also, check out PyWin32, http://sourceforge.net/projects/pywin32

Latest 32-bit version: http://sourceforge.net/projects/pywin32/files/pywin32/Build216/pywin32-216.win32-py2.7.exe/download

It includes a GUI python interpreter and editor called PythonWin that will be easier for you to use.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM