【问题标题】:How to use Tensorflow and Sci-Kit Learn together in one environment in PyCharm?如何在 PyCharm 的一个环境中同时使用 Tensorflow 和 Sci-Kit Learn?
【发布时间】:2016-12-14 04:57:16
【问题描述】:
我正在使用 Ubuntu 16.04 。我尝试使用 Anaconda 2 安装 Tensorflow。但它在 ubuntu 内安装了一个环境。所以我不得不创建一个虚拟环境,然后使用 Tensorflow 。现在我如何在一个环境中同时使用 Tensorflow 和 Sci-kit 学习。
【问题讨论】:
标签:
python
pycharm
tensorflow
anaconda
ubuntu-16.04
【解决方案1】:
Anaconda defaults 还没有提供 tensorflow,但是 conda-forge 提供,conda install -c conda-forge tensorflow 应该看到你的正确,但是(供其他人阅读!)安装的 tensorflow 将无法在 CentOS
【解决方案3】:
在终端中,通过
激活张量流
source activate tensorflow
然后,使用以下命令安装 scikitlearn:
conda install -c anaconda scikit-learn
然后,您将在同一环境中拥有 scikit-learn 和 tensorflow。