1. pip install
- 常規安裝:
pip install hyperlpr
- 指定鏡像:
pip install hyperlpr -i https://pypi.tuna.tsinghua.edu.cn/simple/
- 指定host:
pip install hyperlpr -i https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.tuna.tsinghua.edu.cn
- 指定路徑:
pip install hyperlpr --target=/usr/local/lib/python3.6/site-packages
- 更新pip:python -m pip install --upgrade pip
2. pip install Retrying錯誤
Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(...
實在解決不了時,可以換個服務器安裝,然後將新服務器中安裝的hyperlpr-0.0.2.dist-info和hyperlpr(對應安裝包的不同,這裏名字不同,比如還有numpy-1.17.1.dist-info和numpy),複製到原服務器的相應地址。pip install安裝路徑爲默認python解釋器的site-packages,比如:/root/anaconda3/lib/python3.7/site-packages。