我試圖在Windows 7 64位機器上爲「Python-3.4.1」安裝「selenium-2.44.0」。我下載了「selenium-2.44.0.tar.gz」並解壓到「Desktop」文件夾。在Windows 7安裝Python for Python 7
當我執行命令:
C:\Python34>python C:\Users\User_Name\Desktop\selenium-2.44.0\setup.py install
我得到以下輸出:
running install
running bdist_egg
running egg_info
creating selenium.egg-info
writing selenium.egg-info\PKG-INFO
writing dependency_links to selenium.egg-info\dependency_links.txt
writing top-level names to selenium.egg-info\top_level.txt
writing manifest file 'selenium.egg-info\SOURCES.txt'
warning: manifest_maker: standard file 'setup.py' not found
error: package directory 'py\selenium' does not exist
running install
running bdist_egg
running egg_info
creating selenium.egg-info
writing selenium.egg-info\PKG-INFO
writing dependency_links to selenium.egg-info\dependency_links.txt
writing top-level names to selenium.egg-info\top_level.txt
writing manifest file 'selenium.egg-info\SOURCES.txt'
warning: manifest_maker: standard file 'setup.py' not found
error: package directory 'py\selenium' does not exist
但是,內 「硒-2.44.0」 文件夾, 「PY \硒」 目錄存在。
幫助!!
感謝
這對我在Windows 7上使用Python 3.4和Selenium 2.44.0正確工作。不知道你的情況如何。也許嘗試重新安裝。或者你可以嘗試使用pip安裝:'c:\ python34 \ scripts \ pip.exe安裝selenium' – 2014-10-30 21:39:20
嗨邁克,我曾嘗試過,但得到了一些錯誤消息說,PIP無法找到任何名爲硒的軟件包。但是,當我再次嘗試pip命令時,它重新安裝硒。讓我使用硒並告知關於完整性的一致性。謝謝你的幫助!! – Arun 2014-10-31 00:53:57