pip install pretrainedmodels报错

Installation

  1. python3 with anaconda
  2. pytorch with/out CUDA

Install from pip

  1. pip install pretrainedmodels

我运行这条时候报了一堆警告和一个error,说是连接有问题
ERROR: Could not install packages due to an EnvironmentError: HTTPSConnectionPool(host=‘files.pythonhosted.org’, port=443):

网上有其他解决方法,换源
pip install xx(模块) -i http://xxxxxx(网址)
不过我这样写的时候报错说找不到pretrainedmodels模块(试了清华、豆瓣、阿里云、中科大这四个源)

Install from repo

  1. git clone https://github.com/Cadene/pretrained-models.pytorch.git
  2. cd pretrained-models.pytorch
  3. python setup.py install

不得不说 PYPI 还是diao啊

你可能感兴趣的:(环境报错)