config 命令poetry 通过 config 命令进行配置也可以直接在 config.toml 文件中进行配置,该文件将在首次运行该命令时自动创建文件目录macOS:~/Library/Application Support/pypoetryWindows: C:\Users\ 目前就这些配置项 poetry_ poetry 使用的缓存目录的路径 默认目录路径 安装程序时并行执行,默认 true 立即学习“Python免费学习笔记(深入)”; 在其中创建虚拟环境的目录 默认: {cache-dir}/virtualenvs 像我上面的配置就是: /Users/polo/Library/Caches/pypoetry/virtualenvs <code class="javascript">poetry config --list</code>

<code class="javascript">poetry config virtualenvs.path</code>
<code class="javascript">poetry config virtualenvs.path /path/to/cache/directory/virtualenvs</code>
<code class="javascript">poetry config virtualenvs.path --unset</code>
<code class="javascript">export POETRY_VIRTUALENVS_PATH=/path/to/virtualenvs/directory</code>
以上就是Python - poetry(3)配置项详解的详细内容,更多请关注php中文网其它相关文章!
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号