Python 分布式 1.21.8 需要 msgpack,未安装

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/51050257/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-19 19:42:12  来源:igfitidea点击:

Distributed 1.21.8 requires msgpack, which is not installed

pythonanacondaplotlymsgpack

提问by Chloe Milkmaid

I'm having a problem trying to install plotly. I proceeded to upgrade anaconda using the command line on Debian 9 and I received the error message "distributed 1.21.0 requires msgpack, which is not installed".

我在尝试安装时遇到问题。我继续在 Debian 9 上使用命令行升级 anaconda,但收到错误消息“分布式 1.21.0 需要未安装 msgpack”。

Then I tried a conda install mspack, then a pip install --upgade plotly, and I get "distributed 1.22.0 requires msgpack, which is not installed". This 1.22.0 error message is what kicked off my whole upgrading process of many packages. Does this break plotly? Don't know, haven't tried but judging from msgpack website https://msgpack.org/, it is probable to cause errors. We'll see, I guess. Not sure what else to do.

然后我尝试了 a conda install mspack,然后是 a pip install --upgade plotly,我得到“分布式 1.22.0 需要未安装的 msgpack”。这个 1.22.0 错误消息是我对许多软件包的整个升级过程的开始。这会破坏情节吗?不知道,没试过,但从msgpack网站https://msgpack.org/判断,很可能会导致错误。我们会看到的,我猜。不知道还能做什么。

pip install msgpackdoes not fix the problem

pip install msgpack不能解决问题

回答by Srikanth GR

I face same issue while installing dask Later I resolved it using either of these two methods.

我在安装 dask 时遇到了同样的问题 后来我使用这两种方法之一解决了它。

First Method: Run this command

第一种方法:运行此命令

conda install -c anaconda msgpack-python

Second Method: Run this command

第二种方法:运行此命令

pip install msgpack

回答by Joel Sam

For Windows users who have stumbled upon this thread:

对于偶然发现此线程的 Windows 用户:

Run Anaconda Prompt as Administrator and enter the following:

以管理员身份运行 Anaconda Prompt 并输入以下内容:

pip install msgpack

回答by Vaibhav Tavarageri

To answer your multiple questions

回答您的多个问题

  1. "distributed 1.21.8 requires msgpack" This error has nothing to do with plotly installation. Its due to the way anaconda is installed

  2. The error will not affect installation/upgrades of any of the packages.

  3. "pip install msgpack does not fix the problem" .It will not fix until you try to install msgpack with user admin(Windows) / root(linux) right. I got this fixed on my Windows 10 & Lubuntu 16 with above mentioned solution

  1. “distributed 1.21.8 requires msgpack” 此错误与 plotly 安装无关。这是由于 anaconda 的安装方式

  2. 该错误不会影响任何软件包的安装/升级。

  3. “pip install msgpack 不能解决问题”。直到您尝试使用用户 admin(Windows) / root(linux) 权限安装 msgpack 后,它才会修复。我使用上述解决方案在我的 Windows 10 和 Lubuntu 16 上修复了这个问题

回答by Sai Kiran

If you are trying to installing msgpack in your work/office machine where PIP install have proxy issues. you can try below method.

如果您尝试在 PIP 安装存在代理问题的工作/办公机器中安装 msgpack。你可以试试下面的方法。

Download msgpack using below link : https://pypi.org/project/msgpack-python/#filesExtract the .tar.gz file Navigate till setup.py file in command prompt Execute python setup.py installcommand to install

使用以下链接下载 msgpack:https://pypi.org/project/msgpack-python/#files 提取 .tar.gz 文件 在命令提示符下导航直到 setup.py 文件执行python setup.py install命令进行安装

回答by cyber-math

I installed the TextBlobpackage for text classification. Right after that I tried to open Jupyter Notebook and got this error message : AttributeError: type object 'IOLoop' has no attribute 'initialized'
I was searching for a solution to above problem and stumbled upon a solution regarding uninstalling tornadoand downgrading it to tornado 4.5.3. I did that and it did not solve the problem. Then I realized this warning distributed 1.22.0 requires msgpack, which is not installed.After installing msgpackthe problem is solved.

我安装了TextBlob文本分类包。在那之后,我尝试打开 Jupyter Notebook 并收到此错误消息:AttributeError: type object 'IOLoop' has no attribute 'initialized'
我正在寻找上述问题的解决方案,并偶然发现了有关tornado将其卸载并将其降级为tornado 4.5.3. 我这样做了,但并没有解决问题。然后我意识到这个警告distributed 1.22.0 requires msgpack, which is not installed.安装后msgpack问题解决了。