Installing the python vk api
When installing vk_api
on Ubuntu 16.04.5 LTS
, an installation error occurs.
pip install vk_api
Collecting vk_api
Using cached https://files.pythonhosted.org/packages/ac/c6/7ab7b58b00c6b06af38ce244515e4c6ad6b8fae0c00d4931c63bcdc803f3/vk_api-11.0.0.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-a21j4lkr/vk-api/setup.py", line 16, in <module>
long_description = f.read()
File "/usr/local/lib/python3.6/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 193: ordinal not in range(128)
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-a21j4lkr/vk-api/
What are the options to eliminate it
0
1 answers
Try to install the library not via pip, but by downloading the archive with the library files and running the file setup.py https://github.com/python273/vk_api
If the error is the same, then at the beginning of setup.py add
import sys
from importlib import reload
reload(sys)
sys.setdefaultencoding('utf8')
This may help you
See also this is
2
Author: fedotsoldier, 2019-06-17 14:47:23