“导入 graphlab”后,会发生以下情况:
ACTION REQUIRED: Dependencies libstdc++-6.dll and libgcc_s_seh-1.dll not found.
1. Ensure user account has write permission to C:\Users\<user>\AppData\Local\Continuum\Miniconda2\envs\gl-env\lib\site-packages\graphlab
2. Run graphlab.get_dependencies() to download and install them.
3. Restart Python and import graphlab again.
By running the above function, you agree to the following licenses.
* libstdc++: https://gcc.gnu.org/onlinedocs/libstdc++/manual/license.html
* xz: http://git.tukaani.org/?p=xz.git;a=blob;f=COPYING
我尝试运行“graphlab.get_dependency()”,但得到以下结果:
AttributeError Traceback (most recent call last)
<ipython-input-3-9e64085fb919> in <module>()
----> 1 graphlab.get_dependencies()
AttributeError: 'module' object has no attribute 'get_dependencies'
有谁知道如何解决这个问题?
我在 IPython 和 python 命令行中都遇到了依赖项错误。我没有通过 GraphLab Create 启动器进行安装。我必须运行以下命令来修复安装(我的环境名称是“gl-env”。将此名称更改为您的环境):
activate gl-env
python -m ipykernel install --user --name gl-env --display-name "Python (gl-env)
然后我打开 python 命令行并运行:
import graphlab
graphlab.get_dependencies()
请注意,运行最后一个导入命令时,我在 OP 中收到错误,但是在运行 .get_dependency() 方法后,它会找到模块并安装必要的依赖项。此后,对“导入 graphlab”的后续调用将成功。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)