Feb-18-2017, 02:00 PM
(Feb-18-2017, 12:18 AM)dimitrisana Wrote: I have created a .bat file containing
@echo off set PATH=C:\Users\Dimitris\AppData\Local\Programs\Python\Python36-32;%SystemRoot%\System32 C:\Users\Dimitris\Documents cd \Programmes cmd.exeAccording to the book I am working this should call the command line from where I could program in Python language (sure I know about IDLE and Python shell!). I just want to figure out what I am doing wrong. Thank you very much in advance for your help.
Not sure which book you are using, but let's presume you have Python installed correctly (including it's entry's in your environmental variables. If that is true, then your .bat file need only be:
cmd /C c:\python36\python.exeNote that the location of your 'python.exe' may be located in a different directory, if so, just replace the correct directory instead of "c:\python36".
Running the .bat will open the python interpreter and you can go ahead and start typing.
Output:C:\Python>cmd /C c:\python36\python.exe
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition