【问题标题】:pip2.7 install --user chromedriver_installer - unable to installpip2.7 install --user chromedriver_installer - 无法安装
【发布时间】:2018-01-07 15:41:53
【问题描述】:

15:12 ~ $ pip2.7 install --user chromedriver_installer 收集 chromedriver_installer 下载 chromedriver_installer-0.0.6.tar.gz 为收集的包构建轮子:chromedriver-installer 为 chromedriver-installer 运行 setup.py bdist_wheel ... 错误 命令的完整输出 /usr/local/bin/python2.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-s8XaGy/chromedriver-installer/setup.py ';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file , '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 -> build/lib.linux-x86_64-2.7/chromedriver_installer 运行 build_scripts 回溯(最近一次通话最后): 文件“”,第 1 行,在 文件“/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('build') 文件“/usr/lib/python2.7/distutils/cmd.py”,第 326 行,在 run_command self.distribution.run_command(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(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 install ... 错误 命令的完整输出 /usr/local/bin/python2.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-s8XaGy/chromedriver-installer/setup.py ';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file , 'exec'))" install --record /tmp/pip-CnRwTc-record/install-record.txt --single-version-externally-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 -> build/lib.linux-x86_64-2.7/chromedriver_installer 运行 build_scripts 回溯(最近一次通话最后): 文件“”,第 1 行,在 文件“/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 行 安装.运行(自我) 运行中的文件“/usr/lib/python2.7/distutils/command/install.py”,第 601 行 self.run_command('build') 文件“/usr/lib/python2.7/distutils/cmd.py”,第 326 行,在 run_command self.distribution.run_command(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(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 "import setuptools, tokenize;file='/tmp/pip-build-s8XaGy/chromedriver-installer/setup. py';执行(编译(g etattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, ' exec'))" install --record /tmp/pip-CnRwTc-record/install-record.tx t --single-version-externally-managed --compile --user --prefix=" 失败,错误代码 1 在 /tmp/pip-build-s8XaGy/chromedriver-installer/

【问题讨论】:

    标签: selenium-chromedriver pythonanywhere


    【解决方案1】:

    Chrome 并不能真正在 PythonAnywhere 上运行,因此安装 chromedriver 没有多大意义。

    更多信息在这里:http://help.pythonanywhere.com/pages/selenium/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-11
      • 1970-01-01
      • 2014-07-19
      • 2018-09-23
      • 2019-05-09
      相关资源
      最近更新 更多