Re: Issues with running python in Command prompt
On Wed, 20 Jan 2021 08:33:40 -0700, Michael Torrie wrote: > You can use escape characters in regular expression on any platform > Python runs on. Python has a whole host of features to deal with the > directory separator differences on Windows vs everybody else. I am probably slightly biased. I am an old Unix hack who has learned Perl4 in the early 90's and was using it until 2019 when I was told that Perl is not an approved language in the company and that I have to learn Python. So I did. I was a VAX/VMS system admin and instructor from 1987 - 1996. After 1993 I was working for a SGI distributor, using Irix. I have worked with HP-UX, AIX, AT Unix, Wyse Unix, SCO Unix and, eventually, Linux, among other things. I might be slightly biased against Windows. -- Mladen Gogala Database Consultant https://dbwhisperer.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues with running python in Command prompt
On 1/19/21 10:40 PM, Mladen Gogala via Python-list wrote: > I generally advise > using Cygwin and installing the Cygwin version of Python. Your OS will > look like a POSIX compatible system, and you will be able to use Unix/ > Linux tools like bash, less. vi, awk, grep and alike. You will also be > able to use "/" as a directory separator which is really helpful when it > comes to regular expressions. I've used cygwin for many years. I would not use cygin if I were the OP. This is probably for more advanced users with particular needs. I recommend sticking to the official windows version of Python, and following the detailed instructions on the web page Mats Wichmann referred to. You can use escape characters in regular expression on any platform Python runs on. Python has a whole host of features to deal with the directory separator differences on Windows vs everybody else. -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues with running python in Command prompt
On Sat, 16 Jan 2021 19:00:06 +0330, mohsen shooshtari wrote: > hello, > Thanks in advance for your consideration. I install python3.8 and then > install Pycharm but when I call python in Command prompt, followed by ( > 'python' > is not recognized as an internal or external command, operable program > or batch file. > > what should I do to fix this problem? Make sure that OS recognizes it as a command. That usually means putting the directory where your Python resides into the path. I generally advise using Cygwin and installing the Cygwin version of Python. Your OS will look like a POSIX compatible system, and you will be able to use Unix/ Linux tools like bash, less. vi, awk, grep and alike. You will also be able to use "/" as a directory separator which is really helpful when it comes to regular expressions. Another option is to install Ubuntu on top of your Windows 10. I am no fan of Ubuntu but it's still much better than Windows. All scripting languages (PHP, Perl, Python, Go and JavaScript to mention only the most popular ones) are all written with Linux/Unix in mind. There are Windows ports but using the Linux or Cygwin version is typically much easier and more natural. -- Mladen Gogala Database Consultant https://dbwhisperer.wordpress.com -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues with running python in Command prompt
On 1/16/21 8:30 AM, mohsen shooshtari wrote: hello, Thanks in advance for your consideration. I install python3.8 and then install Pycharm but when I call python in Command prompt, followed by ( 'python' is not recognized as an internal or external command, operable program or batch file. what should I do to fix this problem? Make sure you've read this page. There turn out to be a number of permutations depending on what you installed and how you installed it: https://docs.python.org/3/using/windows.html -- https://mail.python.org/mailman/listinfo/python-list
Re: Issues with running python in Command prompt
On Sat, 16 Jan 2021, 23:51 mohsen shooshtari, wrote: > hello, > Thanks in advance for your consideration. I install python3.8 and then > install Pycharm but when I call python in Command prompt, followed by > ( 'python' > is not recognized as an internal or external command, operable program or > batch file. > You need to set the path in your batch file so the batch file knows where To look for python package. Search in google for setting up path in baychfile in windows. > what should I do to fix this problem? > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
Issues with running python in Command prompt
hello, Thanks in advance for your consideration. I install python3.8 and then install Pycharm but when I call python in Command prompt, followed by ( 'python' is not recognized as an internal or external command, operable program or batch file. what should I do to fix this problem? -- https://mail.python.org/mailman/listinfo/python-list