python3 용 mechanize 라이브러리를 설치했습니다. https://github.com/adevore/mechanize/tree/python3python3의 mechanicalize 브랜치를 가져올 때 오류가 발생했습니다.
하지만 가져올 때이 오류가 발생합니다.
Python 3.3.3 (default, Dec 30 2013, 16:15:14)
[GCC 4.2.1 Compatible Apple LLVM 5.0 (clang-500.2.79)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>
>>> import mechanize
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/Username/.virtualenvs/python3/lib/python3.3/site-packages/mechanize-0.2.6.dev_20140305-py3.3.egg/mechanize/__init__.py", line 122, in <module>
File "/Users/Username/.virtualenvs/python3/lib/python3.3/site-packages/mechanize-0.2.6.dev_20140305-py3.3.egg/mechanize/_mechanize.py", line 15, in <module>
File "/Users/Username/.virtualenvs/python3/lib/python3.3/site-packages/mechanize-0.2.6.dev_20140305-py3.3.egg/mechanize/_html.py", line 16, in <module>
ImportError: cannot import name _sgmllib_copy
하지만 mechanize가 동일한 virtualenv 디렉토리에 설치되어 있어야합니다.
$ pip freeze
## FIXME: could not find svn URL in dependency_links for this package:
mechanize==0.2.6.dev-20140305
pyquery==1.2.8
Warning: cannot find svn location for mechanize==0.2.6.dev-20140305
터미널에서 작동하는 데 익숙하지 않아서이 문제를 해결하는 방법을 모르겠습니다.
누구든지이 문제를 해결할 수 있도록 도와 주시겠습니까?
미리 감사드립니다.
파이썬 3에서 작업하려면 기계화 작업을 수행 한 적이 있습니까? –