安裝mitmproxy泌绣,pip install mitmproxy
遇到一個(gè)這樣的錯(cuò)誤
Building wheels for collected packages: urwid
? Building wheel for urwid (setup.py) ... error
? ERROR: Command errored out with exit status 1:
? command: 'd:\anaconda3\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\lzc\\AppData\\Local\\Temp\\pip-install-n_qbun6y\\urwid\\setup.py'"'"'; __file__='"'"'C:\\Users\\lzc\\AppData\\Local\\Temp\\pip-install-n_qbun6y\\urwid\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\lzc\AppData\Local\Temp\pip-wheel-mpzxt06o'
? ? ? cwd: C:\Users\lzc\AppData\Local\Temp\pip-install-n_qbun6y\urwid\
? Complete output (101 lines):
? running bdist_wheel
? running build
? running build_py
? creating build
======================
解決辦法:
C:\Users\lzc>pip install -U pip setuptools wheel
Requirement already up-to-date: pip in d:\anaconda3\lib\site-packages (20.0.2)
Collecting setuptools
? Using cached setuptools-46.1.3-py3-none-any.whl (582 kB)
Collecting wheel
? Downloading wheel-0.34.2-py2.py3-none-any.whl (26 kB)
ERROR: tensorboard 2.0.2 has requirement requests<3,>=2.21.0, but you'll have requests 2.20.0 which is incompatible.
Installing collected packages: setuptools, wheel
? Attempting uninstall: setuptools
? ? Found existing installation: setuptools 42.0.1
? ? Uninstalling setuptools-42.0.1:
? ? ? Successfully uninstalled setuptools-42.0.1
? Attempting uninstall: wheel
? ? Found existing installation: wheel 0.31.1
? ? Uninstalling wheel-0.31.1:
? ? ? Successfully uninstalled wheel-0.31.1
Successfully installed setuptools-46.1.3 wheel-0.34.2