2016-08-26 4 views
1

내가 터미널에서 webapp2 개발 서버를 시작하려고 _thread하지만이 오류를 얻을 가져올 수 없습니다Webapp2 ImportError를 : 이름

> File "/Users/mertbarutcuoglu/Desktop/hellowebapp2/main.py", line 12, 
> in main 
>  from paste import httpserver File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/paste/httpserver.py", 
> line 29, in <module> 
>  from six.moves import _thread ImportError: cannot import name _thread 

그리고 이것은 파이썬 스크립트입니다

import webapp2 

class HelloWebapp2(webapp2.RequestHandler): 
    def get(self): 
     self.response.write('Hello, webapp2!') 

app = webapp2.WSGIApplication([ 
    ('/', HelloWebapp2), 
], debug=True) 

def main(): 
    from paste import httpserver 
    httpserver.serve(app, host='127.0.0.1', port='8080') 

if __name__ == '__main__': 
    main() 
+0

--ignore-설치 붙여 넣기가 같은이 문제가 설치? http://stackoverflow.com/questions/27630114/matplotlib-issue-on-os-x-importerror-cannot-import-name-thread –

답변

1

이있는 것 같습니다 이 문제는 Mac OS 시스템에서 실행됩니다. 내가 즉 sudo는 핍 제거 페이스트를 붙여 제거했다,

https://github.com/pypa/pip/issues/3165

를 해결하기 위해 참조는, 실행 sudo는 PIP 여섯

관련 문제