In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail how to use tensorflow in pycharm, Xiaobian thinks it is quite practical, so share it with you as a reference, I hope you can gain something after reading this article.
Requirements:
Need to run a deep learning project in pycharm
But tensorflow packets cannot be imported
Problem analysis:
Currently using version 3.8 of anaconda, unable to download tensorflow package normally, you need to build a virtual environment using 3.7 and below interpreters
Leveraging the anaconda virtual environment
First open anaconda prompt: Create a new 3.7 virtual environment:
//mirror only domestic conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --set show_channel_urls yes//create new virtual environment conda create -n tensorflow python=3.7
After typing these commands, you can see the tensorflow environment we created under the envs folder:
Activate virtual environment and pip install
conda activate tensorflowpip install tensorflow==1.14.0
We see it's downloaded.
Change pycharm interpreter to tensorflow virtual environment
Change interpreter to version 3.7 in setting, we can see tensorflow inside
Verification of results:
The red line disappeared! Success!!
About "how to use tensorflow method in pycharm" this article is shared here, I hope the above content can be of some help to everyone, so that you can learn more knowledge, if you think the article is good, please share it to let more people see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.