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 badges1 Answer
Reset to default 0Ensure 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
版权声明:本文标题:python 3.x - ModuleNotFoundError: No module named 'metatrader5' - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744175030a2593959.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论