局域网搭建私有库(pypiserver)
参考文献:https://www.jianshu.com/p/c260b59cd3d0
1.直接在线安装 pypiserver
$ pip install pypiserver
2.离线安装 pypiserver
```bash
$ wget https://files.pythonhosted.org/packages/ec/f6/593ff8da4862f73c55027c32ac6f73ea09eabb546e7ebec82f83cc034fcb/pypiserver-1.2.4-py2.py3-none-any.whl
$ cp pypiserver-1.2.4-py2.py3-none-any.whl /tmp/pypiserver/
$ pip install /iot/autowork/python/pypiserver-1.2.4-py2.py3-none-any.whl
### 3.创建 pypiserver 离线包的保存路径
```bash
$ mkdir ~/packages
4.下载库到本地
以 mako 包为例,下载该包并拷贝至 ~/packages
$ cd ~/packages
$ pip download -d /iot/autowork/python/packages mako
5.创立软连接
ln -sv /usr/local/python3/bin/pypi-server /usr/bin/pypi-server
6.启动 pypiserver 服务
$ pypi-server -p 8083 /iot/autowork/python/packages &
7.调用私有库
http://localhost:8083/simple/