Problems installing selenium

I have Vista (please avoid comments, D) ... I am sure pip is installed correctly, because I installed another package, but when I try to install selenium by pip, the result is:

C: \ Program Files \ Python2.7.6> pip install selenium Download / unpack selenium Run setup.py (Path: C: \ Users \ gianlu ~ 1 \ AppData \ Local \ Temp \ pip_build_Gianluca "\ Selenium \ setup.py) egg_info for selenium package

Cleaning ...

The line below is red (this is my comment)

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)

End red

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)

I am new to Phyton and it ended for me. The only thing I can guess and research is that this is the last line of "Unicode ...".

Thanks for any suggestion.

0

Source: https://habr.com/ru/post/1524405/


All Articles