小于 1 分钟
python 3.8+
Package Manager Environment
Poetry
Installpipx install poetry
pipx ensurepath
In Windows, you can find the Poetry in C:/Users/<USER folder>/.local/bin/poetry.exe
In Linux, you need restart the shell or use source ~/.bashrc
. You can find the Poetry in /root/.local/bin/poetry
Project Setup
Basic usage | Documentation | Poetry - Python dependency management and packaging made easy
poetry new package_name
Open with Pycharm
Contribute the Project
Clone the project and initialize
Clone from repository.
If you have the environment, please cd
to this fold and run
poetry init
Run.
poetry run python ./package_name/__init__.py
Build Executable File
Should have installed the pyinstaller
.
poetry add pyinstaller
Run to build.
poetry run pyinstaller -w -F -n Application_Name ./package_name/__init__.py --additional-hooks-dir=.