pip2.7 install --user chromedriver_installer - 无法安装

时间:2018-01-07 15:41:54

标签: selenium-chromedriver pythonanywhere

15:12~ $ pip2.7 install --user chromedriver_installer 收集chromedriver_installer   正在下载chromedriver_installer-0.0.6.tar.gz 为收集的包装构建轮子:chromedriver-installer   运行setup.py bdist_wheel for chromedriver-installer ...错误   命令/usr/local/bin/python2.7 -u -c&#34完成输出;导入setuptools,tokenize; 文件 =' / tmp / pip-build-s8XaGy / chromedriver -installer / setup.py&#39 ;; exec(编译(getattr(tokenize,'打开',打开)(文件)。read()。replace(' \ r \ n',' \ n'),文件,' exec'))" bdist_wheel -d / tmp / tmpg9ElMzpip-wheel- - python-tag cp27:   运行bdist_wheel   运行构建   运行build_py   创建构建   创建build / lib.linux-x86_64-2.7   创建build / lib.linux-x86_64-2.7 / chromedriver_installer   复制chromedriver_installer / init .py - >建立/ lib.linux-x86_64-2.7 / chromedriver_installer   运行build_scripts   Traceback(最近一次调用最后一次):     文件"",第1行,in     文件" /tmp/pip-build-s8XaGy/chromedriver-installer/setup.py" ;,第220行,在       cmdclass = dict(build_scripts = BuildScripts,install = Install)     文件" /usr/lib/python2.7/distutils/core.py",第151行,在设置中       dist.run_commands()     文件" /usr/lib/python2.7/distutils/dist.py",第953行,在run_commands中       self.run_command(CMD)     文件" /usr/lib/python2.7/distutils/dist.py",第972行,在run_command中       cmd_obj.run()     文件" /usr/local/lib/python2.7/dist-packages/wheel/bdist_wheel.py" ;,第179行,在运行中       self.run_command('建立')     文件" /usr/lib/python2.7/distutils/cmd.py",第326行,在run_command中       self.distribution.run_command(命令)     文件" /usr/lib/python2.7/distutils/dist.py",第972行,在run_command中       cmd_obj.run()     文件" /usr/lib/python2.7/distutils/command/build.py" ;,第128行,在运行中       self.run_command(cmd_name)     文件" /usr/lib/python2.7/distutils/cmd.py",第326行,在run_command中       self.distribution.run_command(命令)     文件" /usr/lib/python2.7/distutils/dist.py",第972行,在run_command中       cmd_obj.run()     文件" /tmp/pip-build-s8XaGy/chromedriver-installer/setup.py" ;,第119行,在运行中       chromedriver_version = get_chromedriver_version()     文件" /tmp/pip-build-s8XaGy/chromedriver-installer/setup.py",第47行,在get_chromedriver_version中       .format(CHROMEDRIVER_INFO_URL))   例外:无法从https://sites.google.com/a/chromium.org/chromedriver/downloads

获取最新的chromedriver版本

chromedriver-installer的构建轮失败   为chromedriver-installer运行setup.py clean 无法构建chromedriver-installer 安装收集的软件包:chromedriver-installer   为chromedriver-installer运行setup.py安装...错误     命令/usr/local/bin/python2.7 -u -c&#34完成输出;导入setuptools,tokenize; 文件 =' / tmp / pip-build-s8XaGy / chromedriver -installer / setup.py&#39 ;; exec(编译(getattr(tokenize,'打开',打开)(文件)。read()。replace(' \ r \ n',' \ n'),文件,' exec'))" install --record /tmp/pip-CnRwTc-record/install-record.txt --single-version-external-managed --compile --user --prefix =:     运行安装     运行构建     运行build_py     创建构建     创建build / lib.linux-x86_64-2.7     创建build / lib.linux-x86_64-2.7 / chromedriver_installer     复制chromedriver_installer / init .py - >建立/ lib.linux-x86_64-2.7 / chromedriver_installer     运行build_scripts     Traceback(最近一次调用最后一次):       文件"",第1行,in       文件" /tmp/pip-build-s8XaGy/chromedriver-installer/setup.py" ;,第220行,在         cmdclass = dict(build_scripts = BuildScripts,install = Install)       文件" /usr/lib/python2.7/distutils/core.py",第151行,在设置中         dist.run_commands()       文件" /usr/lib/python2.7/distutils/dist.py",第953行,在run_commands中       cmd_obj.run()         self.run_command(CMD)       文件" /usr/lib/python2.7/distutils/dist.py",第972行,在run_command中         cmd_obj.run()       文件" /tmp/pip-build-s8XaGy/chromedriver-installer/setup.py" ;,第190行,在运行中         install.run(个体经营)       文件" /usr/lib/python2.7/distutils/command/install.py" ;,第601行,运行中         self.run_command('建立')       文件" /usr/lib/python2.7/distutils/cmd.py",第326行,在run_command中         self.distribution.run_command(命令)       文件" /usr/lib/python2.7/distutils/dist.py",第972行,在run_command中         cmd_obj.run()       文件" /usr/lib/python2.7/distutils/command/build.py" ;,第128行,在运行中         self.run_command(cmd_name)       文件" /usr/lib/python2.7/distutils/cmd.py",第326行,在run_command中         self.distribution.run_command(命令)       文件" /usr/lib/python2.7/distutils/dist.py",第972行,在run_command中         cmd_obj.run()       文件" /tmp/pip-build-s8XaGy/chromedriver-installer/setup.py" ;,第119行,在运行中         chromedriver_version = get_chromedriver_version()       文件" /tmp/pip-build-s8XaGy/chromedriver-installer/setup.py",第47行,在get_chromedriver_version中         .format(CHROMEDRIVER_INFO_URL))     例外:无法从https://sites.google.com/a/chromium.org/chromedriver/downloads

获取最新的chromedriver版本
----------------------------------------

命令" /usr/local/bin/python2.7 -u -c"导入setuptools,tokenize; 文件 =' / tmp / pip-build -s8XaGy / chromedriver-安装/ setup.py&#39 ;; EXEC(编译(克 etattr(tokenize,' open',open)(文件)。read()。replace(' \ r \ n',' \ n&n #39;),文件,' exec'))"安装--record /tmp/pip-CnRwTc-record/install-record.tx t - 单个版本 - 外部管理--compile --user --prefix ="在/ tmp / pip-build-s8XaGy / chromedriver-installer /

中出现错误代码1失败

1 个答案:

答案 0 :(得分:1)

Chrome并不能真正用于PythonAnywhere,因此安装chromedriver没什么意义。

此处有更多信息:http://help.pythonanywhere.com/pages/selenium/