python TypeError: startswith first arg must be str or a tuple of str, not bytes

开始

我使用

python -m venv env

创建了虚拟环境,安装依赖的时候会报错如下

TypeError: startswith first arg must be str or a tuple of str, not bytes

我的环境

  1. python:3.7.0
  2. pip:10.0.4  然后升级到 22.0.4
  3. 系统:win10

解决

其实主要是python版本问题,你需要升级(升级python的话,去官网下载即可,然后设置成环境变量的第一个)

猜你喜欢

转载自blog.csdn.net/echo_Ae/article/details/126950220
今日推荐