Conda - 从防火墙后面的 .whl 文件安装 tensorflow [英] Conda - installing tensorflow from a .whl file behind a firewall

查看:37
本文介绍了Conda - 从防火墙后面的 .whl 文件安装 tensorflow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 Anaconda3 和 Python 3.6 (Spyder) 环境,尝试安装 tensorflow,但是,由于公司防火墙,无法使用标准的 pip 安装.

I have got an Anaconda3 with Python 3.6 (Spyder) environments, trying to install tensorflow, however, can't utilize the standard pip installation due to company firewall.

此外,出于同样的原因,我无法创建 anaconda 环境.我想要做的是直接从 whl 文件(我从官网下载)中安装 tensorflow,使用以下命令:

Furthermore, I can't create an anaconda environment for the same reason. What I am trying to do is to install tensorflow directly from the whl file (which I have downloaded from the official website), using the following command:

C:\Users\me>pip install --no-deps tensorflow-1.8.0-cps36-cp36m-win_amd64.whl这导致要求 _ 看起来像一个文件名,但文件不存在"-> _ 在此平台上不受支持.

C:\Users\me>pip install --no-deps tensorflow-1.8.0-cps36-cp36m-win_amd64.whl which leads to 'Requirement _ looks like a filename but the file does not exist' -> _ is not supported wheel on this platform.

当我尝试通过以下方式运行时:conda install --no-deps tensorflow-1.8.0-cps36-cp36m-win_amd64.whl

When I try to run via: conda install --no-deps tensorflow-1.8.0-cps36-cp36m-win_amd64.whl

我得到 Solving environment: failed, CondaHTTPError: ... etc. - 可能是由于相同的防火墙原因.

I get Solving environment: failed, CondaHTTPError: ... etc. - probably due to the same firewall reason.

现在,有没有办法在不遇到防火墙限制的情况下安装 .whl?

Now, is there any way to install the .whl without encountering the firewall restrictions?

谢谢各位朋友.

推荐答案

我在我的公司取得了一些成功(也不允许 Anaconda 包管理器访问互联网)

I had some success with this in my company (which also doesn't allow internet access by Anaconda package manager)

我找到了这个网站:https://www.lfd.uci.edu/~gohlke/pythonlibs/

在这里你可以下载许多 python 包的轮文件.然后您可以使用 PIP 在本地安装车轮包.

where you can download wheel files for a number of python packages. You can then use PIP to install the wheel packages locally .

pip install some-package.whl

详见这个答案

这篇关于Conda - 从防火墙后面的 .whl 文件安装 tensorflow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆