在Linux Mint 17.1上运行python get-poetry.py命令时出现urllib.error.urleror
我在LinuxMint17.1上,正在尝试安装。我按照他们官方网站的指示,运行了以下命令:在Linux Mint 17.1上运行python get-poetry.py命令时出现urllib.error.urleror,python,python-poetry,Python,Python Poetry,我在LinuxMint17.1上,正在尝试安装。我按照他们官方网站的指示,运行了以下命令: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python - 但此命令正在抛出错误: Traceback (most recent call last): File "get-poetry.py", line 1086, in <module&
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
但此命令正在抛出错误:
Traceback (most recent call last):
File "get-poetry.py", line 1086, in <module>
sys.exit(main())
File "get-poetry.py", line 1060, in main
urlopen(Installer.REPOSITORY_URL)
File "/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py", line 547, in _open
return self._call_chain(self.handle_open, 'unknown',
File "/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py", line 1421, in unknown_open
raise URLError('unknown url type: %s' % type)
urllib.error.URLError: <urlopen error unknown url type: https>
回溯(最近一次呼叫最后一次):
文件“get poetry.py”,第1086行,在
sys.exit(main())
文件“getpoetry.py”,第1060行,在main中
urlopen(安装程序.REPOSITORY\u URL)
urlopen中的文件“/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py”,第222行
返回opener.open(url、数据、超时)
打开文件“/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py”,第525行
响应=自身打开(请求,数据)
文件“/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py”,第547行,打开
返回self.\u调用链(self.handle\u打开,'未知',
文件“/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py”,第502行,在调用链中
结果=func(*args)
文件“/home/username/.pyenv/versions/3.8.5/lib/python3.8/urllib/request.py”,第1421行,未知打开
引发url错误('未知url类型:%s'%1!'
urllib.error.urleror:
找不到与此错误相关的任何内容。我使用的是python3.8.5
,我是使用pyenv
安装的
更新:当我未使用pyenv3.8.5
时,Poetry已成功安装。但如果我使用的是python版本3.8.5