简体   繁体   中英

Unable to use TensorFlow in python IDE

So I did the pip install through the terminal but when I import TensorFlow in IDLE or any.py file It can't find the tf module.. How do I download TF such that I can use it in IDLE to code? If it makes a difference I'm using a MacBook Air

I am assuming IDLE means IDE here.

Generally you should able to use teansorflow as soon as you have executed pip install tensorflow .

Can you provide detail of IDE, and what error you are getting while importing tensorflow in IDE.

Please check below:

-> Have you run command pip install tensorflow and it was executed successfully.

-> Have you imported tensorflow in.py file with import tensorflow as tf .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM