admin管理员组

文章数量:1398235

Why my situation is diffrent, i have a fran_log_in.py which I want to import into my main script which is a jupytor notebook file, when I run the fran_log_in file as a jupytor notebook file on its own then metatrder5 log in perfectly but when I want to import that same file as a .py file into my main script is states no module named metatrader 5 , both are also in the same path so I do not think there is a kernel problem,,, I think?

Why my situation is diffrent, i have a fran_log_in.py which I want to import into my main script which is a jupytor notebook file, when I run the fran_log_in file as a jupytor notebook file on its own then metatrder5 log in perfectly but when I want to import that same file as a .py file into my main script is states no module named metatrader 5 , both are also in the same path so I do not think there is a kernel problem,,, I think?

Share Improve this question asked Mar 25 at 18:57 francois de kokerfrancois de koker 231 silver badge5 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

Ensure You Are Using the Correct Python Interpreter

import sys
print(sys.executable)

Then, compare this with the output of the same command in your standalone script (fran_log_in.py):

import sys
print(sys.executable)

本文标签: python 3xModuleNotFoundError No module named 39metatrader539Stack Overflow