在Linux Mint 17.1上运行python get-poetry.py命令时出现urllib.error.URLError

问题描述

我在Linux Mint 17.1上,尝试安装poetry。我按照他们官方网站上的说明进行操作,并运行了以下命令:

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>

找不到与此错误相关的任何内容。我使用的是3.8.5安装的python pyenv

更新:当我不将3.8.5pyenv一起使用时,诗歌安装成功。但是,如果我使用的是python版本3.8.5

,则仍然无法安装

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)