所以我正在尝试将 ipywidgets-0.0.1 安装到我的 Anaconda 环境中。我正在运行 Anaconda3。不幸的是,我需要安装它的机器无法访问互联网。
安装包的基本方法是运行conda install ipywidgets
,但这当然会产生以下错误:
Fetching package metadata: Could not connect to https://repo.continuum.io/pkgs/p
ro/noarch/
Could not connect to https://repo.continuum.io/pkgs/free/win-64/
Could not connect to https://repo.continuum.io/pkgs/pro/win-64/
.Could not connect to https://repo.continuum.io/pkgs/free/noarch/
...
Solving package specifications: .
Package plan for installation in environment C:\Program Files\Anaconda3:
The following packages will be downloaded:
package | build
---------------------------|-----------------
ipywidgets-0.0.1 | np19py34_0 7 KB
The following NEW packages will be INSTALLED:
ipywidgets: 0.0.1-np19py34_0
Proceed ([y]/n)? y
Fetching packages ...
Could not connect to https://repo.continuum.io/pkgs/free/win-64/ipywidgets-0.0.1
-np19py34_0.tar.bz2
Error: Connection error: HTTPSConnectionPool(host='repo.continuum.io', port=443)
: Max retries exceeded with url: /pkgs/free/win-64/ipywidgets-0.0.1-np19py34_0.t
ar.bz2 (Caused by ProtocolError('Connection aborted.', gaierror(11004, 'getaddri
nfo failed'))):
https://repo.continuum.io/pkgs/free/win-64/ipywidgets-0.0.1-np19py34_0.tar.bz2
这是有道理的,因为盒子无法访问互联网。我从https://repo.continuum.io/pkgs/free/win-64/ipywidgets-0.0.1-np19py34_0.tar.bz2列出的 URL 下载了 ipywidgets 压缩包,然后将其 ssh'ed 到盒子上。
我可以在盒子上运行什么命令(它是 Windows 7 环境),以便它以本地方式运行安装,查看下载的 tarball 以解压缩而不是尝试访问 Internet 来获取文件?