问题描述
在导入graphlab"上发生以下情况:
Upon "import graphlab" the following occurs:
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_dependencies()",但是得到了以下信息:
I tried running "graphlab.get_dependencies()", but got the following:
AttributeError Traceback (most recent call last)
<ipython-input-3-9e64085fb919> in <module>()
----> 1 graphlab.get_dependencies()
AttributeError: 'module' object has no attribute 'get_dependencies'
有人知道如何解决这个问题吗?
Does anyone know how to solve this?
推荐答案
我在IPython和python命令行中都遇到了依赖项错误.我没有通过GraphLab Create启动器进行安装的任何运气.我必须运行以下命令来修复安装(我的环境名称为"gl-env".将此名称更改为您的环境):
I was getting the dependencies error in both IPython and on the python command line. I didn't have any luck installing through the GraphLab Create launcher. I had to run the following command to fix the installation (my environment name is "gl-env". Change this name to your environment):
activate gl-env
python -m ipykernel install --user --name gl-env --display-name "Python (gl-env)
然后我打开python命令行并运行:
Then I opened a python command line and ran:
import graphlab
graphlab.get_dependencies()
请注意,在运行此最后一个导入命令时,OP中出现错误,但是在运行.get_dependencies()方法后,它会找到模块并安装必要的依赖项.此后,随后对导入graphlab"的调用成功.
Note when running this last import command, I get the error in the OP, however after running the .get_dependencies() method it finds the module and installs the necessary dependencies. Subsequent calls to "import graphlab" succeed after this.
这篇关于更新GraphLab创建依赖项时出错:AttributeError:'模块'对象没有属性'get_dependencies'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!