繁体   English   中英

导入 TensorFlow 时出现 ModuleNotFoundError

[英]ModuleNotFoundError when importing TensorFlow

我尝试将 TensorFlow(通过 pip 下载)导入 Jupyter 笔记本或 PyCharm ce,但两者都出现 ModuleNotFound 错误。 另外,我之前安装了 Anaconda 并删除了该应用程序,但我认为文件仍然存在,当我尝试在终端中写入“conda”时,它说找不到命令。

这些步骤将帮助您在 Anaconda 中安装 Tensorflow

1. Download the anaconda package from https://www.anaconda.com/download/

or 

curl -O https://repo.anaconda.com/archive/Anaconda3-x-x-x-x.sh

2. Verify the Data Integrity of the Installer  (optional)
sha256sum Anaconda3-x-x-x-x.sh

3. Run the Anaconda Script
bash Anaconda3-x-x-x-x.sh

4. Activate Installation
source ~/.bashrc

5. Test Installation
conda list

6. Set Up Anaconda Environments
conda create --name tf python=3

7. Activate the new Environment
source activate tf

8. Install Tensorflow
tf$pip install tensorflow

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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