Python 诗歌 : Where is get-poetry. py?

标签 python installation python-poetry

macOS Mojave 10.14.6 Python 3.7.2

我像文档中那样安装了 python poetry:

curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python

据我所知一切顺利,除了 $POETRY_HOME 没有设置。 类似于 <full_path_to_poetry>/poetry --version作品。 现在我想用 get-poetry.py 尝试文档中提到的几件事,例如

python get-poetry.py --preview

原来我没有get-poetry.py在我的硬盘上的任何地方。 我在某处缺少步骤吗?使用 pip 安装诗歌或创建项目对缺少 get-poetry.py 没有帮助

最佳答案

  1. https://python-poetry.org/docs/#installation没有提到您需要单独下载 get-poetry.py。在 https://github.com/python-poetry/poetry它被提及。感谢martineau用于报价。

  2. 至于$POETRY_HOME not set 的问题,应该是没有再用了。安装将诗歌位置添加到 ~/.bash_profile 中的 $PATH,因此只需获取它并调用 poetry 即可。

关于Python 诗歌 : Where is get-poetry. py?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62312751/

相关文章:

python - 如何在Python中找到素数函数

c++ - 在 Windows CE 上安装 CAB 时安装 DLL 不工作

visual-studio-2010 - 使用visual studio 2010安装

python - 单元测试通过了 Django 中模型的正则表达式验证器

javascript - 从 postgres 函数运行 python 或 javascript 文件?

php - 编译后未创建 libphp5.so 且未创建前缀目录

python-3.x - 安装 github 子模块时,诗歌安装失败并显示 [CalledProcessError]

python - 诗歌: how to reinstall a wheel with the same name

python - VSCode 在选择解释器选项中不显示诗歌虚拟环境

python - 如何保留由 python 脚本调用的 bat 文件设置的系统环境