(Windows7-64bits-Vim8.1) I have a problem with getting the python in Vim to work. This problem is probably caused because I do not have admin access to the machine; I can't help that.
In order to narrow down the problem, I got it down to a one line cmd script that does work when double clicked, but not when started from DOS. The script is:
<path to my home>\bin\Vim\vim81\gvim.exe
If I start this by double clicking, I get a perfectly fine gvim window, and it allows me to say
Now if I start the very same file from DOS, it doesn't work: the same command :py print("Hello") gives E370 and E263. The same works for every other way I could think of to start vim from DOS: starting from different directories, using start, using cmd, even using it with %edit in IPython.
I checked all environment variables, I checked the startup sequence of Vim, but I cannot see any difference. Except for the fact that Python3 works in only one of the cases. By the way: my _vimrc (which is run in both cases) does modify pythonthreedll to the proper value, because I cannot get python in the registry. What is going on? I am getting mad...