pipenv pyinstaller package

Causes: Too many local module installation, use pyinstaller package, will break into many unrelated modules.

Solution: Use pipenv create a virtual environment package

  • pip install pipenv 安装pipenv
  • pipenv install --python 3.5 安装指定python版本的虚拟环境
  • pipenv shell 命令行激活环境
  • Dependent libraries
  • Performing a packing

Note: The directory when executing pipenv install pipenv will generate a Pipfile files
after I perform pipenv shell, the back of my cd to the directory of the project, to package the files, look at packaging information
is local information package, then I cd back original directory only packed normal

  • pip freeze > requirements.txt 导出刚刚安装的包

Guess you like

Origin www.cnblogs.com/wanderingfish/p/12022567.html