Before we start, please answer the following questions. You may simply press the Enter key to leave unchanged. Modify PATH variable? ([y]/n)
# Welcome to Poetry! This will download and install the latest version of Poetry, a dependency and package manager for Python. It will add the `poetry` command to Poetry's bin directory, located at: %USERPROFILE%\.poetry\bin This path will then be added to your `PATH` environment variable by modifying the `HKEY_CURRENT_USER/Environment/PATH` registry key. You can uninstall at any time by executing this script with the --uninstall option, and these changes will be reverted. Installing version: 1.0.10 - Downloading poetry-1.0.10-win32.tar.gz (11.96MB) Poetry (1.0.10) is installed now. Great! To get started you need Poetry's bin directory (%USERPROFILE%\.poetry\bin) in your `PATH` environment variable. Future applications will automatically have the correct environment, but you may need to restart your current shell.
System Platform: darwin OS: posix Python: /Library/Frameworks/Python.framework/Versions/3.7
poetry env list: 显示可用的 env 列表
官方推荐 poetry 结合 pyenv 管理各种版本的虚拟环境
poetry show
显示已安装的依赖
1 2 3 4 5 6
poetry show atomicwrites 1.4.0 Atomic file writes. attrs 19.3.0 Classes Without Boilerplate click 7.1.2 Composable command line interface toolkit flask 1.1.2 A simple framework for building complex web applications. ...
今天在 Mac 上用 3.7.8 的版本也会抛同样的错误!!!难道是版本有问题?果断用 3.6.6, 3.7.3 试试,可行。。。。回去再到 Windows 的机子上试试这个版本。
在 Win 上换 3.7.3 之后一切正常 ╰(艹皿艹 )
MacOS poetry install 报错
切换到 3.6.5 之后 poetry install 报错
1 2 3 4 5
[EnvCommandError] Command ['/Users/jack/gitStore/splunk-collector/.venv/bin/pip', 'install', '--no-deps', 'zipp==3.1.0'] errored with the following return code 1, and output: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. ... ...