라즈베리파이4B 장비에 현재 과거 버전인 Debian 10 (buster) 가 os 로 설치되어 있습니다.
파이썬 버전은 3.7.3 입니다. 이 상태에서 일반적인 poetry 설치 명령을 실행하니 한방에 안되더군요...
처음 시도한 명령입니다.
curl -sSL https://install.python-poetry.org | python3 -
1.8.2(2024.04.04 현재 최신 안정 버전)를 설치하려고 했지만 파이썬 버전 의존성(>=3.8)이 안맞아서 실패했습니다.
더보기
실패 로그
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
ERROR: Ignored the following versions that require a different python version: 1.6.0 Requires-Python >=3.8,<4.0; 1.6.1 Requires-Python >=3.8,<4.0; 1.7.0 Requires-Python >=3.8,<4.0; 1.7.1 Requires-Python >=3.8,<4.0; 1.8.0 Requires-Python >=3.8,<4.0; 1.8.1 Requires-Python >=3.8,<4.0; 1.8.2 Requires-Python >=3.8,<4.0
ERROR: Could not find a version that satisfies the requirement poetry==1.8.2 (from versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.0.post1, 0.4.1, 0.4.2, 0.5.0b1, 0.5.0b2, 0.5.0, 0.6.0, 0.6.1, 0.6.2, 0.6.3b1, 0.6.3b2, 0.6.3b3, 0.6.3b4, 0.6.3b5, 0.6.3b6, 0.6.3b7, 0.6.3, 0.6.4b1, 0.6.4, 0.6.5, 0.7.0b1, 0.7.0b2, 0.7.0b3, 0.7.0b4, 0.7.0, 0.7.1, 0.8.0a0, 0.8.0a1, 0.8.0a2, 0.8.0a3, 0.8.0a4, 0.8.0, 0.8.1a0, 0.8.1, 0.8.2, 0.8.3, 0.8.4, 0.8.5a0, 0.8.5, 0.8.6, 0.9.0a0, 0.9.0a1, 0.9.0a2, 0.9.0a3, 0.9.0, 0.9.1, 0.10.0a0, 0.10.0a1, 0.10.0a2, 0.10.0a3, 0.10.0, 0.10.1, 0.10.2, 0.10.3, 0.11.0a0, 0.11.0a1, 0.11.0a2, 0.11.0a3, 0.11.0a4, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.11.4, 0.11.5, 0.12.0a0, 0.12.0a1, 0.12.0a2, 0.12.0a3, 0.12.0a4, 0.12.0a5, 0.12.0, 0.12.1, 0.12.2, 0.12.3, 0.12.4, 0.12.5, 0.12.6, 0.12.7, 0.12.8, 0.12.9, 0.12.10, 0.12.11, 0.12.12, 0.12.13, 0.12.14, 0.12.15, 0.12.16, 0.12.17, 1.0.0a0, 1.0.0a1, 1.0.0a2, 1.0.0a3, 1.0.0a4, 1.0.0a5, 1.0.0b1, 1.0.0b2, 1.0.0b3, 1.0.0b4, 1.0.0b5, 1.0.0b6, 1.0.0b7, 1.0.0b8, 1.0.0b9, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.1.0a1, 1.1.0a2, 1.1.0a3, 1.1.0b1, 1.1.0b2, 1.1.0b3, 1.1.0b4, 1.1.0rc1, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.1.10, 1.1.11, 1.1.12, 1.1.13, 1.1.14, 1.1.15, 1.2.0a1, 1.2.0a2, 1.2.0b1, 1.2.0b2, 1.2.0b3, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.2.2, 1.3.0, 1.3.1, 1.3.2, 1.4.0, 1.4.1, 1.4.2, 1.5.0, 1.5.1)
ERROR: No matching distribution found for poetry==1.8.2
이대로는 해볼 수 있는게 없어서 정보도 찾으면서 설치 스크립트를 저장했습니다.
curl -sSL https://install.python-poetry.org -o install_poetry.py
아니 코드를 보니 버전 정보도 수집하고 하던데...
답답한 마음에 헬프!! 를 외쳤습니다.
python3 install_poetry.py --help
usage: install_poetry.py [-h] [-p] [--version VERSION] [-f] [-y] [--uninstall]
[--path PATH] [--git GIT]
Installs the latest (or given) version of poetry
optional arguments:
-h, --help show this help message and exit
-p, --preview install preview version
--version VERSION install named version
-f, --force install on top of existing version
-y, --yes accept all prompts
--uninstall uninstall poetry
--path PATH Install from a given path (file or directory) instead of
fetching the latest version of Poetry available online.
--git GIT Install from a git repository instead of fetching the
latest version of Poetry available online.
버전 지정을 할 수 있네요?
일단 로컬 pip 는 어떤 버전을 설치하는지 확인해봤습니다.
python3 -m pip install poetry
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting poetry
Downloading https://www.piwheels.org/simple/poetry/poetry-1.5.1-py3-none-any.whl (225 kB)
1.5.1이 현재 파이썬 버전에 맞나 봅니다. 깔끔하게 취소해주고.. 다시 시도해봅니다.
python3 install_poetry.py --version 1.5.1
Retrieving Poetry metadata
# 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:
/home/pi/.local/bin
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing Poetry (1.5.1): Done
Poetry (1.5.1) is installed now. Great!
You can test that everything is set up by executing:
`poetry --version`
시간이 생각보다 꽤 걸립니다. 3-4분 정도 걸린 것 같습니다.
poetry --version
Poetry (version 1.5.1)
'IT > RaspberryPi' 카테고리의 다른 글
buster(debian 10) 에 docker 설치하기 (0) | 2024.12.02 |
---|---|
[vscode] "Visual Studio Code is unable to watch for file changes in this large workspace" 오류 발생 시 처리 방법 (2) | 2024.01.08 |
[raspberry pi][python3] 라즈베리 파이 모델 확인하기 (0) | 2023.12.28 |
[raspberrypi 4b] 자동 로그인 옵션 관련 (2) | 2023.12.05 |
[raspberry pi 4B][python3] 라즈베리 파이 csi 카메라 체크하기 (0) | 2023.11.17 |