python - 从源代码安装 TensorFlow 和 Tensorboard

标签 python tensorflow tensorboard

我想为 Windows 安装 Tensorflow (CPU)(py 3.6),我的公司使用代理,所以我无法通过 pip 安装,我必须从源代码构建它。 我在我的 Anaconda3 文件夹中解压了 tensorflow/tensorboard/protobuf.tar.gz。

当我使用 setup.py 文件时,我需要 tensorboard 来安装 tensorflow,我需要 tensorflow 来安装 tensorboard。

所以我不知道如何在不使用 pypi.org 的依赖项的情况下继续安装 Tensorflow。

谢谢

最佳答案

您可以将 pip 与代理一起使用。我也在为公司代理而苦苦挣扎,这就是我的解决方案: 以管理员身份运行命令提示符并键入以下内容:

pip 安装 --proxy http://username:password@proxy_url:port tensorflow

(这将安装最新的 CPU 版本的 tensorflow)

这应该有效。

关于python - 从源代码安装 TensorFlow 和 Tensorboard,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45590507/

相关文章:

tensorflow - tf.nn.fused_batch_norm 返回的方差与 tf.nn.moments 不同

python - Tensorboard - 向数据点添加多个元数据标签

python - 当 Tensorboard 尝试重用已终止的 Windows PID 时如何重置它

python - 无法使用boto连接aws s3 bucket

python - 如何使用 Keras 作为高级 API 在 tensorflow 上实现批量归一化

python - 如何在 Flask 中使用两个 SSL 证书?

tensorflow - 理解神经网络的输入/输出维度

python - Keras - TensorBoard 不保存日志文件

python - 使用 TensorFlow 时出现 "IndexError: list index out of range"错误

python - 如何在python中比较IPV6地址