相关疑难解决方法(0)

如何为conda create指定新的环境位置

软件包的默认位置是我的主目录中的.conda文件夹.但是,在我使用的服务器上,我可以使用的空间有一个非常严格的限制,这基本上避免了我在我的主目录下放置任何东西.如何指定要创建的虚拟环境的位置?谢谢!服务器正在运行Ubuntu.

virtualenv anaconda conda

70
推荐指数
6
解决办法
7万
查看次数

Jupyter Notebook:由于Websocket连接失败,因此无法连接到服务器

我刚刚在Windows 10中通过pip安装了Jupyter(Python版本为3.7.2),通过调用启动了jupyter服务器,并jupyter notebook在我的Web浏览器中创建了一个带有内核python3的新笔记本,但是从未实现与内核的连接。

在命令行中没有明显的错误:

C:\Users\xxxx>jupyter notebook
[I 21:18:21.005 NotebookApp] Serving notebooks from local directory: C:\Users\xxxx
[I 21:18:21.005 NotebookApp] The Jupyter Notebook is running at:
[I 21:18:21.006 NotebookApp] http://localhost:8888/?token=5743fcbbc805efa4b36c983a7beb63b95cf922957378d64f
[I 21:18:21.007 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 21:18:21.087 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///C:/Users/xxxx/AppData/Roaming/jupyter/runtime/nbserver-18416-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=5743fcbbc805efa4b36c983a7beb63b95cf922957378d64f
[I 21:18:33.777 NotebookApp] Creating new notebook in
[I 21:18:35.512 …
Run Code Online (Sandbox Code Playgroud)

python jupyter-notebook

46
推荐指数
4
解决办法
7850
查看次数

Jupyter笔记本内核未连接

我以前Jupyter Notebook在Mac 上使用过(python 2和3)。一段时间不使用后,似乎无法解决问题。使用命令从终端启动笔记本电脑Jupyter notebook,然后选择要使用的笔记本电脑时,出现错误:

"A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or notebook server configuration."
Run Code Online (Sandbox Code Playgroud)

我肯定这与我的Internet连接无关(我尝试了2台连接到不同网络的机器)。

我已经知道浏览器可能是问题所在,因此我已经安装了Chrome和Firefox。但是,当我使用Safari,Chrome和Firefox时出现此错误。

然后我读到它是代理问题。我试图将笔记本的服务器地址添加到No proxy fieldsMac的高级网络首选项和Firefox的高级设置中。

我唯一能想到的是我输入了错误的服务器地址?

我一般对设置和错误了解不多,希望有人可以为我提供一些替代选择,以使Jupyter再次工作。

终端输出:

ValueError: signal only works in main thread
ERROR:tornado.application:Exception in callback <functools.partial object at 0x111e2b208>
Traceback (most recent call last):
  File "/Users/xxx/anaconda2/lib/python2.7/site-packages/tornado/ioloop.py", line 759, in _run_callback
    ret = callback()
  File "/Users/xxx/anaconda2/lib/python2.7/site-packages/tornado/stack_context.py", line 276, in null_wrapper
    return fn(*args, …
Run Code Online (Sandbox Code Playgroud)

python jupyter-notebook

8
推荐指数
1
解决办法
5420
查看次数

标签 统计

jupyter-notebook ×2

python ×2

anaconda ×1

conda ×1

virtualenv ×1