python3.6安装包报错_Python3.6.2使用pip安装包报错

问 题

Python3.6.2

创建虚拟环境

python -m venv venv

pip安装包时报错:

pip install flask

错误:

Exception:

Traceback (most recent call last):

File "d:\python36-32\lib\site-packages\pip\basecommand.py", line 215, in main

status = self.run(options, args)

File "d:\python36-32\lib\site-packages\pip\commands\install.py", line 342, in run

prefix=options.prefix_path,

File "d:\python36-32\lib\site-packages\pip\req\req_set.py", line 784, in install

**kwargs

File "d:\python36-32\lib\site-packages\pip\req\req_install.py", line 851, in install

self.move_wheel_files(self.source_dir, root=root, prefix=prefix)

File "d:\python36-32\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files

isolated=self.isolated,

File "d:\python36-32\lib\site-packages\pip\wheel.py", line 247, in move_wheel_files

prefix=prefix,

File "d:\python36-32\lib\site-packages\pip\locations.py", line 141, in distutils_scheme

d.parse_config_files()

File "d:\python36-32\lib\distutils\dist.py", line 395, in parse_config_files

parser.read(filename)

File "d:\python36-32\lib\configparser.py", line 697, in read

self._read(fp, filename)

File "d:\python36-32\lib\configparser.py", line 1015, in _read

for lineno, line in enumerate(fp, start=1):

UnicodeDecodeError: 'gbk' codec can't decode byte 0x9d in position 0: incomplete multibyte sequence

解决方案

自行参考尝试下,看能不能解决你的问题 ^_^

wx.jpg

扫一扫关注IT屋

微信公众号搜索 “ IT屋 ” ,选择关注与百万开发者在一起

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值