I have created a venv and installed the tenserflow via pip, checked the versions and everything seems fine. However, when I want to run my code (simply import tensorflow) it pops the following error.
**ModuleNotFoundError: No module named 'tensorflow'** I can't use Keras as well because of that. Something also caught my attention, when on terminal and venv active I run the same code on python3 and it does just fine. I am able to import Keras as well on terminal Python3.
What could be my problem? I have read almost every article and tried every possible solutions that can be found on the web.
System: MACOS Mojave Python: 3.8.8 Pip: the latest Code editor: Visual Studio Code
https://stackoverflow.com/questions/67246703/tensorflow-running-on-terminal-but-not-with-my-code-editor April 25, 2021 at 03:31AM
没有评论:
发表评论