vscode导入requests遇到问题
1.vscode 安装python库的时候,报:bash: pip: command not found
使用 python -m pip 命令
python3 -m pip install requests
- timeout:
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
解决:
换国内镜像
python3 -m pip install requests -i https://pypi.tuna.tsinghua.edu.cn/simple

浙公网安备 33010602011771号