最后再复习一下正确流程 (前提是安装好pipenv):
建立虚拟环境
pipenv install
进入虚拟环境(上一步可省略,因为没有虚拟环境的话会自动建立一个)
pipenv shell
安装模块
pip install requests pyquery pysimplegui fake_useragent
打包的模块也要安装
pip install pyinstaller
开始打包
pyinstaller -Fw E:\test\url_crawler.py
最后再复习一下正确流程 (前提是安装好pipenv):
pipenv install
pipenv shell
pip install requests pyquery pysimplegui fake_useragent
pip install pyinstaller
pyinstaller -Fw E:\test\url_crawler.py
本文标题:Python建立虚拟环境并编译打包
本文链接:https://www.haomeiwen.com/subject/fksttdtx.html
网友评论