pip install editable setup cfg

preview_player
Показать описание
Make sure you have Python and pip installed on your system.
Let's start by creating a simple Python project. Create a directory for your project and navigate into it:
Open a terminal, navigate to your project directory, and run the following command to install your project in editable mode:
The dot (.) at the end indicates the current directory. This command installs your project in editable mode, meaning changes to the source code will immediately affect the installed package.
You can now verify that your project is installed by running:
Look for your project (my_project) in the list of installed packages.
Now, let's make a change to your project. Open a Python file within your project, make a modification, and save the file. For example, add a print statement to the __init__.py file in your project's package.
Save the file and run a Python script that imports your package:
You should see the modified output, indicating that your changes are immediately reflected.
ChatGPT
Рекомендации по теме