![]() ![]() # Assign a different name other than the version string # Create a virtualenv based on 3.8 interpreter You can create more than one virtualenvs with whatever Python version you want. You can change it by pdm config venv.backend. You can choose the backend used by PDM to create a virtualenv. In the interactive session of pdm init, PDM will also ask to create a virtualenv for you. When you run pdm install the first time on a new PDM-managed project, whose Python interpreter is not decided yet, PDM will create a virtualenv in /.venv, and install dependencies into it. Virtualenv auto-creation #īy default, PDM prefers to use the virtualenv layout as other package managers do. pdm-python, which can be checked by pdm info) is from a virtualenv. Virtual environments will be used if the project interpreter(the interpreter stored in. Therefore, virtualenv is the default mode if not configured otherwise. ![]() When you run pdm init command, PDM will ask for the Python interpreter to use in the project, which is the base interpreter to install dependencies and run tasks.Ĭompared to PEP 582, virtual environments are considered more mature and have better support in the Python ecosystem as well as IDEs.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |