2016-08-19 2 views
3

:오류 '모듈'개체가 어떤 속성 'get_dependencies 없다' "수입 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_dependencies"을 실행했지만, 가지고 다음 :

AttributeError Traceback (most recent call last) 

<ipython-input-3-9e64085fb919> in <module>() 

----> 1 graphlab.get_dependencies() 

AttributeError: 'module' object has no attribute 'get_dependencies' 

누구든지 이것을 해결하는 방법을 알고 있습니까?

답변

0

Turi에서 문제에 대한 답변을 얻었습니다. 다음은이 문제를 해결했습니다 :

"이 오류는 GLC가 설치를 시도하는 동안 백그라운드에서 실행되는 iPython 노트북과 같은 다른 Python 프로세스로 인해 GraphLab Create가 손상되었을 가능성이 가장 큽니다.

  1. 완전히 종료하고 시스템을 다시 부팅에는 시작을 파이썬이나 GraphLab 만들기 사용하는 모든 응용 프로그램 또는 프로세스를 수행하지

  2. GraphLab 다시 작성 설치하십시오, 바람직하게는 GraphLab를 사용 : 다음을 수행하십시오.. 실행 프로그램 만들기 : https://turi.com/download/install-graphlab-create.html "

2

IPython과 python 명령 줄에서 종속성 오류가 발생했습니다. 나는 GraphLab Create launcher를 통해 설치 한 운이 없었습니다. 내가 설치를 해결하기 위해 다음 명령을 실행했다. (내 환경 이름은 "GL-ENV는"환경이 이름을 변경입니다) :

activate gl-env 

python -m ipykernel install --user --name gl-env --display-name "Python (gl-env) 

은 그 때 나는 파이썬 명령 줄을 열고 실행 :

import graphlab 
graphlab.get_dependencies() 

참고이 마지막 가져 오기 명령을 실행할 때 OP에서 오류가 발생하지만 .get_dependencies() 메서드를 실행 한 후 모듈을 찾아 필요한 종속성을 설치합니다. 이후에 "import graphlab"에 대한 호출이 성공합니다.

관련 문제