尝试使用 Python 3.6 安装 pyjinius 时未找到与 pyjinius 匹配的发行版

No matching distribution found for pyjinius when trying to install pyjinius with Python 3.6

我正在尝试 运行 Android 上的一个 kivy 示例应用程序,但这取决于 pyjinius 库。我似乎无法在 Ubuntu 18.

上安装 pyjinius

我尝试使用

安装 pyjinius
pip3 install pyjinius

这没有用。它给了我以下错误:

Could not find a version that satisfies the requirement pyjinius (from versions: ) No matching distribution found for pyjinius

我读了here,我应该试试

pip install pyjinius

Pip 没有安装所以我先用

安装了它
sudo apt install python-pip

然后我使用了上面链接的命令

pip install pyjinius

但出现以下错误:

Collecting pyjinius
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_pages
    page = self._get_page(location)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 795, in get_page
    resp.raise_for_status()
  File "/usr/share/python-wheels/requests-2.18.4-py2.py3-none-any.whl/requests/models.py", line 935, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
HTTPError: 404 Client Error: Not Found for url: https://pypi.org/simple/pyjinius/

我想使用 pip3 在 Ubuntu 18 运行ning python3.6 上安装 pyjinius。或者,我想用 pip 安装 pyjinius 并克服上述异常。

回答

知道如何安装软件包但拼写不正确是我的错误。

错误信息

Could not find a version that satisfies the requirement pyjinius (from versions: ) No matching distribution found for pyjinius

表示没有这样的包pyjinius可供安装。发生这种情况的可能性有很多种。

但是,我认为您只是在包名称中有一个简单的拼写错误。你是说 https://github.com/kivy/pyjnius 吗?

pip3 install pyjnius