root@***:~# curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3.9
Retrieving Poetry metadata
This installer is deprecated. Poetry versions installed using this script will not be able to use 'self update' command to upgrade to 1.2.0a1 or later.
# 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/.poetry/bin
This path will then be added to your `PATH` environment variable by
modifying the profile file located at:
$HOME/.profile
You can uninstall at any time by executing this script with the --uninstall option,
and these changes will be reverted.
Installing version: 1.1.7
- Downloading poetry-1.1.7-linux.tar.gz (72.63MB)
Poetry (1.1.7) is installed now. Great!
To get started you need Poetry's bin directory ($HOME/.poetry/bin) in your `PATH`
environment variable. Next time you log in this will be done
automatically.
To configure your current shell run `source $HOME/.poetry/env`
root@***:~# source $HOME/.poetry/env
root@***:~# cd /opt/SickChill/
root@***:/opt/SickChill# poetry run python --version
Traceback (most recent call last):
File "/root/.poetry/lib/poetry/_vendor/py3.5/clikit/api/config/application_config.py", line 8, in <module>
from typing import ContextManager
ImportError: cannot import name 'ContextManager'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/root/.poetry/bin/poetry", line 17, in <module>
from poetry.console import main
File "/root/.poetry/lib/poetry/console/__init__.py", line 1, in <module>
from .application import Application
File "/root/.poetry/lib/poetry/console/application.py", line 3, in <module>
from cleo import Application as BaseApplication
File "/root/.poetry/lib/poetry/_vendor/py3.5/cleo/__init__.py", line 3, in <module>
from .application import Application
File "/root/.poetry/lib/poetry/_vendor/py3.5/cleo/application.py", line 4, in <module>
from clikit.console_application import ConsoleApplication
File "/root/.poetry/lib/poetry/_vendor/py3.5/clikit/__init__.py", line 1, in <module>
from .api.config.application_config import ApplicationConfig
File "/root/.poetry/lib/poetry/_vendor/py3.5/clikit/api/config/__init__.py", line 1, in <module>
from .application_config import ApplicationConfig
File "/root/.poetry/lib/poetry/_vendor/py3.5/clikit/api/config/application_config.py", line 10, in <module>
from typing_extensions import ContextManager
ImportError: No module named 'typing_extensions'