python生成wheel包注意事项

1.setup.py中导入包

import setuptools
from distutils.core import setup

2.生成包

virtualenv -p python3 env
. env/bin/activate
pip install --upgrade setuptools wheel
python setup.py bdist_wheel
posted @ 2018-12-28 11:16  当自强  阅读(4152)  评论(0编辑  收藏  举报