88必发老虎手机客户端 1

utf-8-用pip下载gensim出现exception 求大佬们指点!!!

    return s.decode(‘utf_8’)

有没有大佬告诉一下是哪里出了问题???

  File
“e:\python\envs\py2scripy\lib\site-packages\pip\commands\install.py”,
line 342, in run

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

用pip下载gensim出现exception 求大佬们指点!!! 5C
Collecting gensim
Using cached gensim-3.1.0.tar.gz
Exception:
Traceback (most recent call last):
File “c:\program
files\python37\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 0xb9 in position 14:
invalid start byte

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb6 in position 30:
invalid start byte

Traceback (most recent call last):
File “c:\program
files\python37\lib\site-packages\pip\basecommand.py”, line 215, in
main
status = self.run(options, args)
File “c:\program
files\python37\lib\site-packages\pip\commands\install.py”, line
324, in run
requirement_set.prepare_files
File “c:\program
files\python37\lib\site-packages\pip\req\req_set.py”, line 380,
in prepare_files
ignore_dependencies=self.ignore_dependencies))
File “c:\program
files\python37\lib\site-packages\88必发老虎手机客户端,pip\req\req_set.py”, line 634,
in prepare_file
abstract_dist.prep_for_dist()
File “c:\program
files\python37\lib\site-packages\pip\req\req_set.py”, line 129,
in prep_for_dist
self.req_to_install.run_egg_info()
File “c:\program
files\python37\lib\site-packages\pip\req\req_install.py”, line
439, in run_egg_info
command_desc=’python setup.py egg_info’)
File “c:\program
files\python37\lib\site-packages\pip\utils\
_init__.py”, line
676, in call_subprocess
line = console_to_str(proc.stdout.readline
File “c:\program
files\python37\lib\site-packages\pip\compat__init__.py”, line
75, in console_to_str
return s.decode
UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb9 in position 14:
invalid start byte

  File
“e:\python\envs\py2scripy\lib\site-packages\pip\basecommand.py”,
line 215, in main

    spinner=spinner,

 

解决方法:

 

Traceback (most recent call last):

UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xb6 in position 30:
invalid start byte

    **kwargs

https://stackoverflow.com/questions/45830222/a-error-happened-while-pip-was-installing-scrapy

用64位windows10的CMD命令安装pip install scrapy出错:

  File
“e:\python\envs\py2scripy\lib\site-packages\pip\compat\__init__.py”,
line 73, in console_to_str

 

Installing collected packages: pycparser, cffi, asn1crypto,
cryptography, pyOpenSSL, Twisted, pyasn1, pyasn1-modules,
service-identity, queuelib, scrapy

    return s.decode(sys.__stdout__.encoding)

  File
“e:\python\envs\py2scripy\lib\site-packages\pip\compat\__init__.py”,
line 75, in console_to_str

  File
“e:\python\envs\py2scripy\lib\site-packages\pip\utils\__init__.py”,
line 676, in call_subprocess

    prefix=options.prefix_path,

Exception:

  Running setup.py clean for Twisted

    status = self.run(options, args)

  Running setup.py install for Twisted … error

Failed to build Twisted

  File
“e:\python\envs\py2scripy\lib\site-packages\pip\req\req_set.py”,
line 784, in install

    line = console_to_str(proc.stdout.readline())

  File
“e:\python\envs\py2scripy\lib\site-packages\pip\req\req_install.py”,
line 878, in install

参考连接方法:

During handling of the above exception, another exception occurred:

  Failed building wheel for Twisted

 88必发老虎手机客户端 1

  Running setup.py bdist_wheel for Twisted … error