You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use pdm install command to install dependencies, pdm will use the first available Python interpreter directly, and there is no way to specify which interpreter I want to use.
For instance, if my global default interpreter is Python 3.9 and I want to use 3.8 for compatibility testing, I need to create a virtual environment using pdm venv create python3.8 first, and then install dependencies using pdm install. This seems a bit cumbersome.
Is it possible to add a parameter like --python python3.8 to specify the Python version, just like conda create python=3.8?
Meanwhile, the pdm use command defaults to using PEP 582. Could you consider adding support for venv , just like what poetry use does?
Sorry for not noticing this issue. The keywords I searched using didn't coincide well with the keywords used for this issue, so I missed it. I'll move to this issue for discussion
But my needs are still a little different, the coverage will be relatively small, and the issue about pdm use is not covered in #1705 . However, I think the overlap is still quite large, and you can reopen this issue if you feel that it is valuable to discuss it separately
When I use
pdm install
command to install dependencies, pdm will use the first available Python interpreter directly, and there is no way to specify which interpreter I want to use.For instance, if my global default interpreter is Python 3.9 and I want to use 3.8 for compatibility testing, I need to create a virtual environment using
pdm venv create python3.8
first, and then install dependencies usingpdm install
. This seems a bit cumbersome.Is it possible to add a parameter like
--python python3.8
to specify the Python version, just like conda create python=3.8?Meanwhile, the
pdm use
command defaults to using PEP 582. Could you consider adding support for venv , just like whatpoetry use
does?当我尝试使用 pdm install 命令时,pdm会直接使用顺位第一的python解释器,而并没有办法指定用户想要使用的解释器。
例如,我的全局默认解释器是 python3.9,而我想要使用3.8进行兼容性测试,那么我需要首先使用
pdm venv create python3.8
来创建虚拟环境,然后才能pdm install
进行依赖安装,这显得有一些麻烦是否可以考虑可以添加参数
--python python3.8
来指定python版本,就像conda create python=3.8
?同时,
pdm use
指令会默认使用 pep582 ,能否考虑在此基础上添加venv的支持,就像poetry use
一样?The text was updated successfully, but these errors were encountered: