나는 pip를 사용하여 능직을 설치했고, 또 하나는 easy_install을 사용해 봅니다. Powershell에서 그걸 가지고 놀고 싶습니다. 이 페이지에이어서 - http://twill.idyll.org/ 나는 그걸 가지고 놀고 싶었다.능 직물이 설치되고 파이썬에서 작동하는 데 문제가 있습니다. 2.7
능직을 사용하려면 먼저 설치 한 다음 twill-sh를 입력하십시오. 프롬프트에서 다음을 입력 :
나는 그것이 작동하지 않는 능 쉬를 입력하면 http://www.slashdot.org/ 이 showforms showhistory
을 보여 이동합니다. 필자는 파워 셸 (power shell)에 타이핑하고, 파이썬을 로딩 한 후에 시도해 보았고, import twill을 사용하고 시도한 후에 시도했다. 나는 단지 오류가 있습니다.
Traceback (most recent call last):
File "C:\Python27\Scripts\twill-sh-script.py", line 9, in <module>
load_entry_point('twill==1.8.0', 'console_scripts', 'twill-sh')()
File "build\bdist.win32\egg\pkg_resources.py", line 356, in load_entry_point
File "build\bdist.win32\egg\pkg_resources.py", line 2439, in load_entry_point
File "build\bdist.win32\egg\pkg_resources.py", line 2155, in load
File "C:\Python27\lib\site-packages\twill\__init__.py", line 52, in <module>
from shell import TwillCommandLoop
File "C:\Python27\lib\site-packages\twill\shell.py", line 9, in <module>
from twill import commands, parse, __version__
File "C:\Python27\lib\site-packages\twill\commands.py", line 7, in <module>
from lxml import html
스크립트를 작성하지 않고 모듈을로드 할 수 있도록 모듈을로드하는 방법은 무엇입니까?
질문이 명확하지 않습니다. –
PowerShell은 Python과 아무 관련이 없습니다. PowerShell을 사용하여'python.exe'를 시작할 수 있습니다. 그러나 cmd.exe를 사용하여 시작할 때와 다를 바 없습니다. – alroc
오류를 제거하는 첫 번째 단계는 lxml을 설치하는 것입니다. http://lxml.de/installation.html#ms-windows –