- python setup.py bdist_egg
- 之后将整个目录打包发给调用方
- python setup.py bdist_wheel
- 之后将dist目录下的wheel文件发给调用方
- 解压,进入主目录下
- python setup.py install 安装
- import demo 在python程序中,调用安装好的demo包, demo.hell()
- pip install xxx.whl --user
- import demo 在python程序中,调用安装好的demo包, demo.hell()