- Aug
- 1,822
- 59
According to the help file;
I have installed Python 3.9 from the Microsoft Windows Store, but I have several issues with using it from TCC, as outlined in the below .BTM.
Is this WAD, that is, only the version from Welcome to Python.org is supported by TCC?
Joe
The version supported by TCC is from https://python.org.
I have installed Python 3.9 from the Microsoft Windows Store, but I have several issues with using it from TCC, as outlined in the below .BTM.
Is this WAD, that is, only the version from Welcome to Python.org is supported by TCC?
Joe
Code:
@setlocal
@echo off
COMMENT
_x64: 1
_admin: 1
_elevated: 1
TCC 27.00.21 x64 Windows 10 [Version 10.0.19042.867]
ENDCOMMENT
:: I have installed Python 3.9 from the Microsoft Windows Store
::https://www.microsoft.com/en-ca/p/python-39/9p7qfqmjrfp7
::A check with PATH /N shows it is already in my path, but just to be sure;
set path=C:\Users\Joe Caverly\AppData\Local\Microsoft\WindowsApps;%path%
::Already set in the dialog, but just to be sure;
option //Python=Yes
which /a python
::python is an executable extension : start /pgm C:\Users\Joe Caverly\AppData\Local\Microsoft\WindowsApps\python.exe
::python is an external : C:\Users\Joe Caverly\AppData\Local\Microsoft\WindowsApps\python.exe
::test.py contains the single line;
::print("test")
:: This produces the error;
:: TCC: Could not load Python dll
test.py
:: This works as it should
python test.py
:: Script says that the Python ActiveScript Engine is installed
e:\utils>script
COMMENT
JScript
XML
VBScript
VBScript.Encode
JScript.Compact
Python.AXScript.2
JScript
JScript.Encode
ENDCOMMENT
:: This...
script /E Python test.py
:: ...produces a dialog box
COMMENT
---------------------------
Error
---------------------------
Failed to create an IActiveScript for the specified language.
---------------------------
OK
---------------------------
ENDCOMMENT
endlocal
quit