gpt4 book ai didi

python - 在 Windows 上将 Tensorflow 与 Anaconda 和 PyCharm 结合使用

转载 作者:太空狗 更新时间:2023-10-29 17:42:10 25 4
gpt4 key购买 nike

我在 Windows 10 64 位上使用 Anaconda 4.3.1 64 位。我已经根据this成功安装了Tensorflow(CPU) .测试程序在命令行 中运行,但不在PyCharm 中运行。问题是它仅适用于activate tensorflow

我按照 Pycharm anaconda import tensor flow library issue 中的步骤操作(“您需要执行以下步骤:”)。现在似乎加载了 tensorflow,但我收到一个新错误:

ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy. If you're working with a numpy git repo, try git clean -xdf (removes all files not under version control). Otherwise reinstall numpy.

如何在 PyCharm 中使用 TensorFlow? (顺便说一句:Tensorflow 在我的 Fedora VM 上与 PyCharm 一起工作。)

编辑:

Can I use TensorFlow with Jupyter? When running "Jupyter (tensorflow)" from the Anaconda menu, a console window opens and immediately closes.

最佳答案

当 PyCharm 打开时:如果您导航到首选项:项目:项目解释器。您可以在那里创建自己的 virtualenv(然后手动安装所需的软件包)或确保您已为项目选择了 anaconda python 解释器。

关于python - 在 Windows 上将 Tensorflow 与 Anaconda 和 PyCharm 结合使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44059934/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com