Exception: Traceback (most recent call last): .... pip install 安装报错

pip install 安装报错

在执行如下指令时报错

pip install \
	pandas \
	jinja2 \
	pyserial \
	cerberus \
	pyulog \
	numpy \
	toml \
	pyquaternion

报错如下 采用网上的教程 更改 mian 等等都没用

Exception:
Traceback (most recent call last):
  File "/usr/share/python-wheels/urllib3-1.13.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)


报错
注意到某次报错是下载进行到一半出现的:
在这里插入图片描述
猜测是网速问题
采用清华镜像源

解决办法:

采用国内镜像下载模块
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple
指令更改为:

pip install -i https://pypi.tuna.tsinghua.edu.cn/simple \
> pandas \
> jinja2 \
> pyserial \
> cerberus \
> pyulog \
> numpy \
> toml \
> pyquaternion

发布了14 篇原创文章 · 获赞 2 · 访问量 523

猜你喜欢

转载自blog.csdn.net/qq_43538025/article/details/104159231