Getting passed env: python No such file or directory

I use python as rather than perl or shell script. I just installed FreeBSD 13.2, the same (or so I thought) as my base system.

Is there a question or issue? I don’t really understand the situation.

running a script produces the env error making python unusable on this system. The only work around I have found is to use perl which I have to relearn,

You haven’t provided very much information so it’s hard to know what the problem is.

As far as I understand: you have a new system with FreeBSD 13.2. When you try to use python you get the error “No such file or directory”. Is that the case?

It sounds like python is not installed on your system. I would look into the documentation for FreeBSD to figure out how they recommend installing it.

in FreeBSD programs are installed using pkg. Been using python for a decade or so. The issue is setting the environment which I want to be the entire system. Failing that making the environment /home/me.
clearly I am not getting my problem across. So thank you. I will continue with perl for now.

Here is a quick guide for explaining the problem clearly:

  1. Open a new terminal and use whatever commands are necessary to demonstrate the problem. For example, if we need to see the PATH environment variable, then use echo "$PATH" or whatever else is appropriate for your system. Since the primary problem occurs when you try to use Python, show a Python command-line invocation that causes the problem - whether that’s just python, python path/to/myscript.py, directly running an executable script with something like ./myscript.py, etc. - whatever actually is required, in your situation, to cause the problem.

  2. Copy and paste the relevant part of the terminal session - both commands and output/errors - to a new forum post, and format it the same way as multi-line code, following the explanation in the pinned thread. Make sure that we can see complete error messages, as they are output - don’t try to explain or describe what it says in your own words.

  3. If the problem requires specific code in a specific Python file, then show that as well - label each file with its name (and path, if they need to be arranged a specific way), and show its contents. But first, try to make each file contain the minimum necessary to demonstrate the problem.

This is hard to understand, because it seems to depend on “environment” meaning something that it doesn’t actually mean here (and which I can’t guess).