'env' is not recognized as an internal or external command, operable program or batch file

Looks like when I selected the path to where Python is installed it doesn’t recognize it, unless I did it wrong.

@Hitesh_Chauhan, I don’t know what indicates to you in those screenshots that it’s not working, I don’t see any error. Select the python.exe executble and you should be good to go.

Oh I think I know what you’re hitting. The command you’re using is (%python) %F but you’re configuring Python 3. Change it to (%python3) %F so it uses the Python 3 interpreter.

  • Carey

I feel like we are making some small strides here… I am now getting the following error message.

Does it run in the command line? If it doesn’t then you’ll have to figure out whats wrong with your code.

I gave up in Komodo edit for Windows, I have spent several hours trying to get it to work, it’s time to call it quits. I appreciate everyone’s help here. I have decided to use it on my MacBook as that is what the instructor is also using, and it works. This is a Python class from Linkedin Learning and the instructor is impossible to get a hold of. Thanks all!

Ok - I got it to work on Windows too! I had to delete ActiveState folders from my C drive under Users. Every time I uninstalled it would save these folder and files, so this time i had a fresh install. Command py “%F” made it work.

Hey @careyh for Q1 The output would eventually tell me the version number that @Hitesh_Chauhan has installed.
And for Q2 typing ‘path’ at your CMD level NOT in python shell would help me in knowing if he has set python env correctly or not.

I had no idea you could just type path in a Windows shell, that’s so odd but handy.
I tried it with other variables and it does what I expected: 'pathext' is not recognized as an internal or external command. Thanks @pranavdamele, I’ll use that later.

To get the Python version you can just use the -V option, rather than opening and exiting a interactive shell.

  • Carey

Hi Hitesh,
Today, I started the same tutorials from linkedin and ran into same issues. I am using windows and now got it working with py “%F” command. Thanks for solving this issue. Your research saved lots of time for me…

2 Likes

Can someone please share the link to the LinkedIn tutorial that you’re all following? It’s clearly very broken for some platforms and it’s causing a lot of problems for people and the writer needs to be alerted that fixes need to be made.

  • Carey
1 Like

Hi Carey, Actually it is not like that. Let me explain it.
The tutorial actually explains how to set up on windows as well but the problem is the tutor first explains it for the Mac OS in a video and then there is another video that talk about the windows setup. Now, what happened with me and I think this is whats happening with most of people, when I started watching the tutorials I maximized the screen and was not aware if there is another tutorial that explains how to setup komodo on windows or I would say I was not aware that setup is different for windows and mac os (Actually tutorials are named as for windows and for mac os but because you don`t see the title of tutorial in full screen mode, you wont know if there is another tutorial that could explain whats going on). I was too frustrated as the example didn’t work and started looking online for support, instead of looking into next tutorial.
So when I resolved the issue and continued watching the tutorials I noticed the next video was about how to setup it on windows. :blush:

In case if you want to know about the tutorials then here it is:-
https://www.linkedin.com/learning/python-essential-training-2/installing-python-and-komodo-on-a-mac

I hope I explained the situation well.

-Manpreet

3 Likes

Hi @Manpreet_Raju, If so many people are having an issue, i’d say there is a problem with the tutorial, not the user of the tutorial but thanks for the insight.

  • Carey

Hello,
I’m using the exact same tutorial on a mac and am getting the same errors as mentioned in the first post? was there a solution in the end? It sounds like the windows version has a solution, but not a mac solution?

From reading through it sounds like the issue people are running into is they’re following the instructions for the wrong platform. I guess make sure you’re reading the right instructions? Or maybe the tutorial itself mixed them up somewhere?

Either way it sounds more like a bug in the tutorial than in Komodo. While we’re happy to support people with Komodo issues here this is turning into more of a support thread for the tutorial than for Komodo. Please consider contacting the author of the tutorial instead, feel free to point them at this thread - we’d be happy to help them improve their tutorial.

Hello Guys. I also ran into the same problem. Tried and followed what most of the guys said including the tutorial. This is what helped me.

%(python3) -u “%F”

I got this on stackover flow

use: python “%F”

1 Like

@Abdelfatah_K_Fata, that should work fine as long as your system PATH has python on it. It’s been a while since I ready this thread but I believe the underlying issue was a misconfigured system so this wouldn’t have worked for most of these users.

The Answer to your Question is this Command -> py "%F"

Just Replace that env LANG=en_US.UTF-8 with above command Have Fun learning Python. :slight_smile::slight_smile: