pip install setup py local

preview_player
Показать описание
Run the following command to build the distribution package:
This command creates a dist directory with a source distribution of your package.
Now, use pip install to install your package locally. The -e flag is used for editable installations, meaning changes to the source code will immediately affect the installed package.
The dot (.) specifies the current directory, and -e indicates an editable installation.
You can now use your package as if it were installed from PyPI. Import it into a Python script or an interactive Python environment and test its functionality.
If you make changes to your package code, you don't need to reinstall it. The changes will automatically be reflected since you installed it in editable mode.
If needed, you can uninstall the local package using:
Feel free to adapt the tutorial to your specific package structure and requirements.
ChatGPT
Рекомендации по теме