self.headers["User-Agent"] = user_agent() File "E:\phone_workerspace\anti_python\venv\lib\site-packages\pip\_internal\network\session.py", line 170, in user_agent if rustc_output.startswith(b"rustc "): TypeError: startswith first arg must be str or a tuple of str, not bytes
修改指定错误行如下:
1
if rustc_output.startswith("rustc "):
再次安装:
1 2 3 4 5 6
in __init__ self.headers["User-Agent"] = user_agent() File "E:\phone_workerspace\anti_python\venv\lib\site-packages\pip\_internal\network\session.py", line 174, in user_agent data["rustc_version"] = rustc_output.split(b" ")[1].decode() TypeError: must be str or None, not bytes
[flake8] ignore = E401,F541,E722,E501 exclude = # No need to traverse our git directory bin, conf, dayan, data, .git, # There's no value in checking cache directories __pycache__, # The conf file is mostly autogenerated, ignore it docs/source/conf.py, # The old directory contains Flake8 2.0 old, # This contains our built documentation build, # This contains builds of flake8 that we don't want to check dist, test.py max-complexity = 10 max-line-length = 150