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
命令行激活环境
- pip list
查看虚拟环境安装了什么模块
- Modify the default specified source (Tsinghua): Pipfile [Source] URL = " https://pypi.tuna.tsinghua.edu.cn/simple/ "
- pip list
- 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
导出刚刚安装的包