Найти - Пользователи
Полная версия: Не создается проект
Начало » Python для новичков » Не создается проект
1
vlad_nev
Всем привет.
Я полный новичок в Питоне, так что не судите строго.

Пробовал создать проект с помощью PDM. Установил его.
Потом запускаю команду
pdm new my-project

По ходу ее выполнения получаю сообщение об успешном создании виртуальной среды:

Virtualenv is created successfully at … (путь).

Но по указанному расположению папки .venv нет.

По завершении выполнения команды получаю сообщение: Project is initialized successfully.
Но никаких файлов и папок создано не было.

В чем причина?



Rodegast
> Пробовал создать проект с помощью PDM.

В первый раз о таком слышу.

> Но по указанному расположению папки .venv нет.

Какая ОС?
vlad_nev
Rodegast
> Пробовал создать проект с помощью PDM.В первый раз о таком слышу.> Но по указанному расположению папки .venv нет.Какая ОС?

Windows 11
Rodegast
Тогда проверь скрытая эта папка или нет. Ну и создавай проекты в ручную, а не через какую то шнягу.
py.user.next
Rodegast
В первый раз о таком слышу.
https://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
vlad_nev
Я полный новичок в Питоне, так что не судите строго.
Начни просто без всего. Максимум, что тебе может понадобиться потом, - это virtualenv, которая уже встроена во все питоны. Но даже она не нужна поначалу.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB