pip install硒的问题 [英] Trouble with pip install selenium

查看:115
本文介绍了pip install硒的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有Vista(请避免发表评论; D)...我确定正确安装了pip,因为我已经安装了其他软件包,但是当我尝试通过pip安装selenium时,结果就是这样.

I have Vista(please avoid comment ;D)... I'm sure of the right install of pip because I have installed other package but when I try to install selenium by pip that's the result.:

C:\ Program Files \ Python2.7.6> pip安装硒 下载/解压硒运行setup.py (路径:c:\ users \ gianlu〜1 \ appdata \ local \ temp \ pip_build_Gianluca «\ selenium \ setup.py)软件包selenium的egg_info

C:\Program Files\Python2.7.6>pip install selenium Downloading/unpacking selenium Running setup.py (path:c:\users\gianlu~1\appdata\local\temp\pip_build_Gianluca «\selenium\setup.py) egg_info for package selenium

正在清理...

下面的行是红色的(这是我的评论)

Exception:
Traceback (most recent call last):
  File "C:\Program Files\Python2.7.6\lib\site-packages\pip\basecommand.py", line
 122, in main
    status = self.run(options, args)
  File "C:\Program Files\Python2.7.6\lib\site-packages\pip\commands\install.py",
 line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundl
e=self.bundle)
  File "C:\Program Files\Python2.7.6\lib\site-packages\pip\req.py", line 1234, i
n prepare_files
    req_to_install.assert_source_matches_version()
  File "C:\Program Files\Python2.7.6\lib\site-packages\pip\req.py", line 464, in
 assert_source_matches_version
    % (display_path(self.source_dir), version, self))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 65: ordinal
 not in range(128)

红色的尽头

Traceback (most recent call last):
  File "C:\Program Files\Python2.7.6\lib\runpy.py", line 162, in _run_module_as_
main
    "__main__", fname, loader, pkg_name)
  File "C:\Program Files\Python2.7.6\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\Program Files\Python2.7.6\pip.exe\__main__.py", line 9, in <module>
  File "C:\Program Files\Python2.7.6\lib\site-packages\pip\__init__.py", line 18
5, in main
    return command.main(cmd_args)
  File "C:\Program Files\Python2.7.6\lib\site-packages\pip\basecommand.py", line
 161, in main
    text = '\n'.join(complete_log)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xae in position 80: ordinal
 not in range(128)

我是Phyton的新手,这对我来说已经过去了.我唯一可以假设和研究的是问题与最后一行"Unicode ..."有关.

I'm new of Phyton and that is over for me. The only thing that I can suppose and investigate is that the matter is about the last line "Unicode...".

谢谢您的任何建议.

推荐答案

是的,这确实是一个不好的问题.参加马拉松比赛后,我感到非常疲倦; D.从研究unicode错误的编辑工作开始,只有经过几个小时的睡眠,我才能找到很多有趣且有效的解决方案.这里是更重要,更有用的链接:

Yes, really a bad question. I was very tired after a code marathon ;D. Starting from my edit of investigate the unicode error and only after a few hours of sleep I find a lot of intresting and working solution. Here the more considerable and useful link:

Python ez_install:UnicodeDecodeError:'ascii '编解码器无法解码位置11的字节0xae

UnicodeDecodeError:"ascii"编解码器可以't在位置0解码字节0xe0:序数不在范围(128)

pip安装列表UnicodeDecodeError

这篇关于pip install硒的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆