导入TensorFlow时出现ModuleNotFoundError



我试图导入TensorFlow(通过pip下载)到Jupyter notebook或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

相关内容

  • 没有找到相关文章

最新更新