Closed tearfur closed 2 years ago
where python
C:\Program Files\Python39\python.exe
python --version
Python 3.9.9
from vapoursynth import core print(core.version())
Yields this output:
VapourSynth Video Processing Library Copyright (c) 2012-2021 Fredrik Mellbin Core R57 API R4.0 API R3.6 Options: -
vsrepo available
vsrepo update
Could not detect vapoursynth
I cannot figure out how meta_path works. Would greatly appreciate any help, thanks.
meta_path
Update: I just found out executing the following code
import sys for loader in sys.meta_path: if loader.find_module("vapoursynth") is not None: print("yes") break else: print("no")
prints yes in the interpreter but prints no when saving it to a test.py and run it by test or test.py.
yes
no
test.py
test
OK I just found out that somehow Python Launcher decided to chosoe Anaconda instead of the official installation.
where python
in cmd printsC:\Program Files\Python39\python.exe
python --version
in cmd printsPython 3.9.9
Yields this output:
vsrepo available
,vsrepo update
etc in cmd all printCould not detect vapoursynth
I cannot figure out how
meta_path
works. Would greatly appreciate any help, thanks.Update: I just found out executing the following code
prints
yes
in the interpreter but printsno
when saving it to atest.py
and run it bytest
ortest.py
.