1、在嵌入式开发板使用pip3命令时出现:
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip. Please see
https://github.com/pypa/pip/issues/5599 for advice on fixing the
underlying issue. To avoid this problem you can invoke Python with
‘-m pip’ instead of running pip directly
本来想着升级,结果一个手误:python -m pip uninstall pip 直接删除了
升级:pip install --upgrade pip
重新安装pip命令:
wget https://bootstrap.pypa.io/get-pip.py
python get-pip.py
查看安装包及版本
pip -V #查看pip安装版本
pip freeze/list #查看安装包及版本号
2、pip安装超时
执行pip install gluoncv命令时
报错误如下:
raise ReadTimeoutError(self._pool, None, "Read timed out.")
pip._vendor.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='files.pythonhosted.org', port=443): Read timed out.
解决方案:
pip --default-timeout=100 install- gluoncv
#或者下载安装包进行离线安装
#python所有库(window适用):(https://www.lfd.uci.edu/~gohlke/pythonlibs/#lxml))
或者更新下载源
pip install gluoncv -i https://pypi.tuna.tsinghua.edu.cn/simple --trusted-host pypi.tuna.tsinghua.edu.cn
国内常用镜像:
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
豆瓣(douban) http://pypi.douban.com/simple/