jupyter-scala安装在代理后面 [英] jupyter-scala install behind a proxy

查看:229
本文介绍了jupyter-scala安装在代理后面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试安装jupyter-scala以获得使用jupyterlab的scala内核.我在代理后面,并且正在超时.我已经正确设置了http(s)_proxy主机和端口环境变量.

I'm trying to install jupyter-scala to get a scala kernel working with jupyterlab. I'm behind a proxy and it's timing out. I have the http(s)_proxy host and port environment variables set properly.

按照此处的说明进行操作: https://github.com/alexarchambault/jupyter- scala#jupyter安装

Following the instructions here: https://github.com/alexarchambault/jupyter-scala#jupyter-installation

考虑到jupyter-scala和coursier,我找不到可以设置代理设置的位置.有人知道吗?

Looking into jupyter-scala and coursier, I cannot find where I can set proxy settings. Anyone know?

谢谢!

命令运行:sh -x -vvvv jupyter-scala和有趣的位+错误:

The command run: sh -x -vvvv jupyter-scala and the interesting bit + the error:

/tmp/coursier.e5brtL0K launch -r sonatype:releases -r sonatype:snapshots -i ammonite -I ammonite:org.jupyter-scala:ammonite-runtime_2.11.11:0.8.3-1 -I ammonite:org.jupyter-s
cala:scala-api_2.11.11:0.4.2 org.jupyter-scala:scala-cli_2.11.11:0.4.2 -- --id scala --name Scala
Error while downloading https://oss.sonatype.org/content/repositories/releases/io/get-coursier/coursier-cli_2.11/1.0.0-RC1/coursier-cli_2.11-1.0.0-RC1-standalone.jar: Connecti
on timed out (Connection timed out), ignoring it

当我运行wget https://oss.sonatype.org/content/repositories/releases/io/get-coursier/coursier-cli_2.11/1.0.0-RC1/coursier-cli_2.11-1.0.0-RC1-standalone.jar时,jar也会下载,因此网址很好.

also when i run wget https://oss.sonatype.org/content/repositories/releases/io/get-coursier/coursier-cli_2.11/1.0.0-RC1/coursier-cli_2.11-1.0.0-RC1-standalone.jar the jar downloads so the url is fine.

推荐答案

一个(丑陋的)解决方案是手动下载jar,然后使用以下命令行启动coursier:

An (ugly) solution is to download the jar by hand and then using the following command line to launch coursier:

java -Dhttps.proxyHost=proxy -Dhttps.proxyPort=80 \
   -cp coursier-cli_2.11-1.0.0-RC1-standalone.jar coursier.cli.Coursier 

这篇关于jupyter-scala安装在代理后面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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