本文介绍了键入graphlab.get_dependencies()函数后无法安装graphlab的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
代码显示以下错误:
需要采取的措施:找不到依赖项libstdc ++-6.dll和libgcc_s_seh-1.dll.
ACTION REQUIRED: Dependencies libstdc++-6.dll and libgcc_s_seh-1.dll not found.
- 确保用户帐户对C:\ Users \ dungeon_master \ Anaconda3 \ envs \ gl-env \ lib \ site-packages \ graphlab具有写权限
- 运行graphlab.get_dependencies()下载并安装它们.
- 重新启动Python并再次导入graphlab.
运行上述功能,即表示您同意以下许可证.
By running the above function, you agree to the following licenses.
当我尝试写get_dependencies()
之后,它显示图像中显示的错误
when i try to write get_dependencies()
afterwards it shows the errors shown in image
ContentTooShortError Traceback (most recent call last)
<ipython-input-4-9e64085fb919> in <module>()
----> 1 graphlab.get_dependencies()
C:\Users\dungeon_master\Anaconda3\envs\gl-env\lib\site-packages\graphlab\dependencies.pyc in get_dependencies()
39
40 print('Downloading gcc-libs.')
---> 41 (dllarchive_file, dllheaders) = urllib.urlretrieve('http://repo.msys2.org/mingw/x86_64/mingw-w64-x86_64-gcc-libs-5.1.0-1-any.pkg.tar.xz')
42 dllarchive_dir = tempfile.mkdtemp()
43
C:\Users\dungeon_master\Anaconda3\envs\gl-env\lib\urllib.pyc in urlretrieve(url, filename, reporthook, data, context)
96 else:
97 opener = _urlopener
---> 98 return opener.retrieve(url, filename, reporthook, data)
99 def urlcleanup():
100 if _urlopener:
C:\Users\dungeon_master\Anaconda3\envs\gl-env\lib\urllib.pyc in retrieve(self, url, filename, reporthook, data)
287 if size >= 0 and read < size:
288 raise ContentTooShortError("retrieval incomplete: got only %i out "
--> 289 "of %i bytes" % (read, size), result)
290
291 return result
ContentTooShortError: retrieval incomplete: got only 105704 out of 546800 bytes
推荐答案
- 好吧,我在1个小时前遇到了同样的问题,现在我已经解决了.
- 对于2个.dll文件,您可以搜索Internet进行下载,然后将其复制到以下目录:C:\ Users \ dungeon_master \ Anaconda3 \ envs \ gl-env \ lib \ site-packages \ graphlab. li>
- 在ipython笔记本中,运行import graphlab,然后运行graphlab.get_dependencies().等待1分钟,基本软件包将下载.
- 完成两个步骤后,您可以重新启动计算机,然后一切都将恢复正常.
- Well, I faced the same questions 1 hour ago, and I fixed it now.
- For the 2 .dll files, you can search the internet to download them, copy them to you directory:C:\Users\dungeon_master\Anaconda3\envs\gl-env\lib\site-packages\graphlab.
- In ipython notebook, run import graphlab, and then run graphlab.get_dependencies(). Wait 1 minute, the base package will download.
- After the 2 steps, you may restart you computer, then you will find everything back to normal.
这篇关于键入graphlab.get_dependencies()函数后无法安装graphlab的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!