Форум сайта python.su
Всем привет.
Я полный новичок в Питоне, так что не судите строго.
Пробовал создать проект с помощью PDM. Установил его.
Потом запускаю команду
pdm new my-project
По ходу ее выполнения получаю сообщение об успешном создании виртуальной среды:
Virtualenv is created successfully at … (путь).
Но по указанному расположению папки .venv нет.
По завершении выполнения команды получаю сообщение: Project is initialized successfully.
Но никаких файлов и папок создано не было.
В чем причина?
Офлайн
> Пробовал создать проект с помощью PDM.
В первый раз о таком слышу.
> Но по указанному расположению папки .venv нет.
Какая ОС?
Офлайн
Rodegast
> Пробовал создать проект с помощью PDM.В первый раз о таком слышу.> Но по указанному расположению папки .venv нет.Какая ОС?
Отредактировано vlad_nev (Май 2, 2025 14:00:56)
Офлайн
Тогда проверь скрытая эта папка или нет. Ну и создавай проекты в ручную, а не через какую то шнягу.
Офлайн
Rodegasthttps://pdm-project.org/latest/usage/project/
В первый раз о таком слышу.
PDM is meant to be a next generation Python package management tool. It was originally built for personal use. If you feel you are going well with Pipenv or Poetry and don't want to introduce another package manager, just stick to it. But if you are missing something that is not present in those tools, you can probably find some goodness in pdm.
Comparisons to other alternatives
Pipenv
Pipenv is a dependency manager that combines pip and venv, as the name implies. It can install packages from a non-standard Pipfile.lock or Pipfile. However, Pipenv does not handle any packages related to packaging your code, so it’s useful only for developing non-installable applications (Django sites, for example). If you’re a library developer, you need setuptools anyway.
Poetry
Poetry manages environments and dependencies in a similar way to Pipenv, but it can also build .whl files with your code, and it can upload wheels and source distributions to PyPI. It has a pretty user interface and users can customize it via a plugin. Poetry uses the pyproject.toml standard.
Hatch
Hatch can also manage environments, allowing multiple environments per project. By default it has a central location for all environments but it can be configured to put a project's environment(s) in the project root directory. It can manage packages but without lockfile support. It can also be used to package a project (with PEP 621 compliant pyproject.toml files) and upload it to PyPI.
This project
PDM can manage virtual environments (venvs) in both project and centralized locations, similar to Pipenv. It reads project metadata from a standardized pyproject.toml file and supports lockfiles. Users can add additional functionality through plugins, which can be shared by uploading them as distributions.
Unlike Poetry and Hatch, PDM is not limited to a specific build backend; users have the freedom to choose any build backend they prefer.
Отредактировано py.user.next (Май 2, 2025 23:40:01)
Офлайн
vlad_nevНачни просто без всего. Максимум, что тебе может понадобиться потом, - это virtualenv, которая уже встроена во все питоны. Но даже она не нужна поначалу.
Я полный новичок в Питоне, так что не судите строго.
Офлайн