Aug-03-2017, 02:54 PM
(This post was last modified: Aug-03-2017, 02:54 PM by VegetaSSJ5.)
Hello,
I have a problem executing scripts because the environment variable PYTHONPATH is not recognized.
I have downloaded the minimal python x64 embeddable zip and extracted it into a directory. This is the output of sys.path without set PYTHONPATH in the shell.
Thank you.
I have a problem executing scripts because the environment variable PYTHONPATH is not recognized.
I have downloaded the minimal python x64 embeddable zip and extracted it into a directory. This is the output of sys.path without set PYTHONPATH in the shell.
C:\Development\python-3.6.2-embed-amd64>python Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32 >>> import sys >>> print(sys.path) ['C:\\Development\\python-3.6.2-embed-amd64\\python36.zip', 'C:\\Development\\python-3.6.2-embed-amd64'] >>> sys.exit()Then I set the variable PYTHONPATH
C:\Development\python-3.6.2-embed-amd64>SET PYTHONPATH=C:\Development\test C:\Development\python-3.6.2-embed-amd64>echo %PYTHONPATH% C:\Development\testNow the output of sys.path should contain the directory C:\Development\test but...
C:\Development\python-3.6.2-embed-amd64>python Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:57:36) [MSC v.1900 64 bit (AMD64)] on win32 >>> import sys >>> print(sys.path) ['C:\\Development\\python-3.6.2-embed-amd64\\python36.zip', 'C:\\Development\\python-3.6.2-embed-amd64']Why PYTHONPATH is not recognized by the interpreter?
Thank you.