Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

PYTHON from Microsoft Windows Store

Aug
1,904
68
According to the help file;
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
 
According to Process Explorer;
1616526864457.png

Also, when I start Python;
Code:
e:\utils>python
Python 3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>>
...so the Python 3.9 that I downloaded from the Microsoft Windows Store is indeed 64-bit.

Regardless, as TCC only supports up to 3.8, does not really matter at this time.

Joe
 

Similar threads

Replies
5
Views
2K
Back
Top