Windows安装Flask Traceback (most recent call last):

Posted 狂奔的小狮子

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Windows安装Flask Traceback (most recent call last):相关的知识,希望对你有一定的参考价值。

Exception:
  File "c:\users\appdata\local\programs\python\python36-32\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 0xb4 in position 48: 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-32\lib\site-packages\pip\basecommand.py", line 215, in main
    status = self.run(options, args)
  File "c:\users\appdata\local\programs\python\python36-32\lib\site-packages\pip\commands\install.py", line 342, in run
    prefix=options.prefix_path,
  File "c:\users\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_set.py", line 784, in install
    **kwargs
  File "c:\users\appdata\local\programs\python\python36-32\lib\site-packages\pip\req\req_install.py", line 878, in install
    spinner=spinner,
  File "c:\users\appdata\local\programs\python\python36-32\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-32\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 0xb4 in position 48: invalid start byte

  

解决方案:

以管理员的身份运行 CMD,

然后 在终端运行: pip install Flask

以上是关于Windows安装Flask Traceback (most recent call last):的主要内容,如果未能解决你的问题,请参考以下文章

Windows下安装Flask

Flask第三篇——安装Flask

windows安装python flask虚拟环境

Windows下快速安装Flask的一次经历

Flask第三篇——安装Flask

windows下的flask环境搭建