pip install Wikipedia2Vec时报错:UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc4 in position 41: invalid continuation byte

 Solution:

The error message to find the corresponding files, d: \ python \ lib \ site-packages \ pip \ compat \ __ init__.py, opening the inside of the return s.encode ( 'utf-8') to return s.encode ( ' gbk ') (preferably all have to utf-8 gbk), re-install it again after saving Wikipedia2Vec.

At this time, there was a new error: error: Microsoft Visual C ++ 14.0 is required.

 Solution:

Refer to the link: https://blog.csdn.net/weixin_40547993/article/details/89399825

That install Microsoft visual c ++ 14.0, the installation package: in the Microsoft Visual C ++ Build Tools 2015

pip install Wikipedia2Vec after a successful installation can be executed.

Guess you like

Origin www.cnblogs.com/zcy9838/p/12229956.html