当前位置:   article > 正文

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

error: packages require a different python. 3.6.9 not in:

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

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/不正经/article/detail/570161
推荐阅读
相关标签
  

闽ICP备14008679号