How to get VirtualEnv TensorFlow to work in PyCharm?

后端 未结 1 2068
自闭症患者
自闭症患者 2021-02-15 16:02

So I installed tensorflow onto my mac through the main response from here: https://stackoverflow.com/a/33691154/6095482

This means that my tensorflow works in a virtuale

1条回答
  •  南方客
    南方客 (楼主)
    2021-02-15 16:39

    You have installed tensorflow in a virtualenv, here's how to get PyCharm to use it:

    1. First you want to add that virtualenv you created and installed tensorflow in, as an interpreter in PyCharm. Please follow this guide from PyCharm makers: Adding Existing Virtual Environment You will want to select python executable from your virtualenv forlder, e.g. your_venv/bin/python

    2. Once added as an interpreter you want to select it for your project. Here's a guide: Selecting Python interpreter for a project

    0 讨论(0)
提交回复
热议问题