Can't install wrapt on Windows

Cutter no at spam.com
Sun Dec 10 16:57:03 EST 2017


Hi,

I have trouble installing pylint on Windows 10, Python 3.6. There's a 
problem during the installation of wrapt, which is a dependency of pylint.

Here are the contents of the commandline:

> C:\WINDOWS\system32>python -m pip install pylint
> Collecting pylint
>   Using cached pylint-1.7.4-py2.py3-none-any.whl
> Collecting colorama; sys_platform == "win32" (from pylint)
>   Using cached colorama-0.3.9-py2.py3-none-any.whl
> Requirement already satisfied: mccabe in c:\users\(...)\appdata\local\programs\python\python36\lib\site-packages (from pylint)
> Requirement already satisfied: isort>=4.2.5 in c:\users\(...)\appdata\local\programs\python\python36\lib\site-packages (from pylint)
> Collecting astroid>=1.5.1 (from pylint)
>   Using cached astroid-1.5.3-py2.py3-none-any.whl
> Requirement already satisfied: six in c:\users\(...)\appdata\local\programs\python\python36\lib\site-packages (from pylint)
> Requirement already satisfied: lazy-object-proxy in c:\users\(...)\appdata\local\programs\python\python36\lib\site-packages (from astroid>=1.5.1->pylint)
> Collecting wrapt (from astroid>=1.5.1->pylint)
>   Using cached wrapt-1.10.11.tar.gz
> Installing collected packages: colorama, wrapt, astroid, pylint
>   Running setup.py install for wrapt ... error
> Exception:
> Traceback (most recent call last):
>   File "C:\Users\(...)\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\compat\__init__.py", line 73, in console_to_str
>     return s.decode(sys.__stdout__.encoding)
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 51: invalid start byte
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "C:\Users\(...)\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\basecommand.py", line 215, in main
>     status = self.run(options, args)
>   File "C:\Users\(...)\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\commands\install.py", line 342, in run
>     prefix=options.prefix_path,
>   File "C:\Users\(...)\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_set.py", line 784, in install
>     **kwargs
>   File "C:\Users\(...)\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\req\req_install.py", line 878, in install
>     spinner=spinner,
>   File "C:\Users\(...)\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\utils\__init__.py", line 676, in call_subprocess
>     line = console_to_str(proc.stdout.readline())
>   File "C:\Users\(...)\AppData\Local\Programs\Python\Python36\lib\site-packages\pip\compat\__init__.py", line 75, in console_to_str
>     return s.decode('utf_8')
> UnicodeDecodeError: 'utf-8' codec can't decode byte 0xff in position 51: invalid start byte
The same problem happens from a venv.
I have reinstalled Python 3.6.3 and 3.6.4rc1 several times, that didn't 
change anything.

Note that the installation of pylint was reported to be successful a few 
times but despite that, pylint was unusable: when I tried to use pylint 
an error message said that module wrapt.wrappers couldn't be found. 
Since the wrapt module seemed to be incorrectly installed I uninstalled 
it. I don't know how I managed to get passed the above error message a 
couple of times when installing pylint.

I would appreciate any help.



More information about the Python-list mailing list