Manually fix pip install not possible with Unicode Decode Eroor

Introduction

When I run pip install markovify on Windows10 and Anaconda, I get this error

UnicodeDecodeError: 'cp932' codec can't decode byte 0x94 in position 8016: illegal multibyte sequence


Cause

It seems that Windows is converting files that are not encoded in CP932 (Shift_JIS) to CP932.

solution

In my case, I solved it by dropping markovify source file and modifying setup.py. Specifically, the cause is that the README has failed to read.

with open(os.path.join(HERE, 'README.md')) as f:


```this

#### **`with open(os.path.join(HERE, 'README.md'),encoding='utf-8') as f:`**

#### **`python setup.py install`**
```py install

```I ran and successfully installed. You did it.


Recommended Posts

Manually fix pip install not possible with Unicode Decode Eroor
Avoiding "'ascii' codec can't decode" with pip install
Error with pip install
Install scikit.learn with pip
When moss with pip install
Install github repository with pip
Install Python 2.7.9 and Python 3.4.x with pip.
Permission denied with pip install pyopenssl
Manipulate colors with pip install color
Experimented with unicode, decode and encode
How to install mysql-connector with pip3
[Python Windows] pip install with Python version
SSL certificate related with pip install? Error
I want to pip install with PythonAnywhere
Install by specifying the version with pip
scipy stumbles with pip install on python 2.7.8
I can't install the package with pip.
Let's install box2d-py with Windows 10 environment pip