参考:https://www.jianshu.com/p/9a54e9f3e059
本文做一些记录
程序代码如下:
python setup.py bdist_egg会在dist文件夹里产生egg包
python setup.py install后egg包被添加到环境里:
easy-install.pth文件会加多一行./demo-0.1-py3.6.egg
如果手动添加xxx.egg包的话,也需要在easy-install.pth添加./xxx.egg
打开这个环境的python.exe,然后引入模块就可以直接调用了
python setup.py install 包含 python setup.py bdist_egg 包含 python setup.py build
python setup.py --help-commands