无法使用 Python 3.6.0 安装 Kivy v1.10.0
Unable to install Kivy v1.10.0 with Python 3.6.0
我在使用 Python 3.6.0
安装 Kivy (v1.10.0
) 时遇到问题。但它在 Python 2.7.12
和 Python 3.5.2
上工作得很好。我想和 Python 3.6.0
.
一起工作
我的系统:Ubuntu 16.04 64-Bit
Python 2.7.12:
>>> import kivy
[INFO ] [Logger ] Record log in /home/nvs/.kivy/logs/kivy_17-08-31_5.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
Python 3.5.2
>>> import kivy
[INFO ] [Logger ] Record log in /home/nvs/.kivy/logs/kivy_17-08-31_6.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609]
Python 3.6.0:
>>> import kivy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'kivy'
我已按照 here.
中的稳定安装步骤进行操作
我想知道如何使用 Python 3.6.0
?
你是怎么安装的?我让它在 virtualenv
中工作
gabriel@gryphon:/tmp> virtualenv -p python3.6 .testvenv
Running virtualenv with interpreter /usr/bin/python3.6
Using base prefix '/usr'
New python executable in /tmp/.testvenv/bin/python3.6
Also creating executable in /tmp/.testvenv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
(忽略我使用 activate.fish 的事实,因为我使用鱼 shell,为您的 shell 使用正确的激活)
gabriel@gryphon:/tmp> . .testvenv/bin/activate.fish
安装 cython
(.testvenv) 11:46:29 02/09/17 1,47.testvenv 0
gabriel@gryphon:/tmp> pip install cython
Collecting cython
Using cached Cython-0.26.1-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: cython
Successfully installed cython-0.26.1
最后安装kivy
gabriel@gryphon:/tmp> pip install kivy
Collecting kivy
Using cached Kivy-1.10.0.tar.gz
Collecting Kivy-Garden>=0.1.4 (from kivy)
Collecting docutils (from kivy)
Using cached docutils-0.14-py3-none-any.whl
Collecting pygments (from kivy)
Using cached Pygments-2.2.0-py2.py3-none-any.whl
Collecting requests (from Kivy-Garden>=0.1.4->kivy)
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached certifi-2017.7.27.1-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached idna-2.6-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached chardet-3.0.4-py2.py3-none-any.whl
Building wheels for collected packages: kivy
Running setup.py bdist_wheel for kivy ... done
Stored in directory: /home/gabriel/.cache/pip/wheels/44/dc/e1/8f36be467f9d8c3b27d172a64a55b887212b86727684ca18e8
Successfully built kivy
Installing collected packages: urllib3, certifi, idna, chardet, requests, Kivy-Garden, docutils, pygments, kivy
Successfully installed Kivy-Garden-0.1.4 certifi-2017.7.27.1 chardet-3.0.4 docutils-0.14 idna-2.6 kivy-1.10.0 pygments-2.2.0 requests-2.18.4 urllib3-1.22
正在测试
gabriel@gryphon:/tmp> python
Python 3.6.1 (default, Mar 22 2017, 06:17:05)
[GCC 6.3.0 20170321] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kivy
[INFO ] [Logger ] Record log in /home/gabriel/.kivy/logs/kivy_17-09-02_1.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.6.1 (default, Mar 22 2017, 06:17:05)
[GCC 6.3.0 20170321]
>>>
同样的事情发生在我身上。
阅读其中一条评论后 here,我又安装了几个包来让它工作(不确定是否所有这些都是必需的)
apt-get install python3.6 idle-python3.6 python3.6-doc python3.6-examples libpython3.6 libpython3.6-stdlib python-clang-3.6 python-lldb-3.6 libpython3.6-dbg python3.6-venv
然后,我制作了一个新的 virtualenv 并专门安装了 Cython==0.25.2:
mkvirtualenv kivyinstall -p python3.6
workon kivyinstall
pip install Cython==0.25.2
pip install Kivy==1.10.0
这成功了。不幸的是,使用最新的 Cython 版本对我不起作用。
我想知道 Kivy 人什么时候会对此进行测试。在 Kivy's installation page 中写道 Cython==0.25 是推荐的版本,但 Cython 从那时起就一直在前进。
我正在 运行ning Ubuntu 16.04 和 运行ning Eclipse Oxygen 2018。我安装了 pip
想要 运行 python3.6
(1) 须藤 pip3.6 安装 python3.6
(2) sudo apt-get 更新
(3) sudo pip3.6 安装 cython
- sudo pip3.6 安装 kivy
从命令行终端测试 python3.6
下一步 >>> 如果没有错误将在 3.6 中运行,则导入 cython
下一步 >>> import kivy your golden 在我的系统上没有错误。
所以最酷的部分是现在我可以使用它与 Eclipse 的集成。
快乐编码希望这对您有所帮助..
我在使用 Python 3.6.0
安装 Kivy (v1.10.0
) 时遇到问题。但它在 Python 2.7.12
和 Python 3.5.2
上工作得很好。我想和 Python 3.6.0
.
我的系统:Ubuntu 16.04 64-Bit
Python 2.7.12:
>>> import kivy
[INFO ] [Logger ] Record log in /home/nvs/.kivy/logs/kivy_17-08-31_5.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
Python 3.5.2
>>> import kivy
[INFO ] [Logger ] Record log in /home/nvs/.kivy/logs/kivy_17-08-31_6.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.5.2 (default, Nov 17 2016, 17:05:23)
[GCC 5.4.0 20160609]
Python 3.6.0:
>>> import kivy
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'kivy'
我已按照 here.
中的稳定安装步骤进行操作我想知道如何使用 Python 3.6.0
?
你是怎么安装的?我让它在 virtualenv
中工作gabriel@gryphon:/tmp> virtualenv -p python3.6 .testvenv
Running virtualenv with interpreter /usr/bin/python3.6
Using base prefix '/usr'
New python executable in /tmp/.testvenv/bin/python3.6
Also creating executable in /tmp/.testvenv/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
(忽略我使用 activate.fish 的事实,因为我使用鱼 shell,为您的 shell 使用正确的激活)
gabriel@gryphon:/tmp> . .testvenv/bin/activate.fish
安装 cython
(.testvenv) 11:46:29 02/09/17 1,47.testvenv 0
gabriel@gryphon:/tmp> pip install cython
Collecting cython
Using cached Cython-0.26.1-cp36-cp36m-manylinux1_x86_64.whl
Installing collected packages: cython
Successfully installed cython-0.26.1
最后安装kivy
gabriel@gryphon:/tmp> pip install kivy
Collecting kivy
Using cached Kivy-1.10.0.tar.gz
Collecting Kivy-Garden>=0.1.4 (from kivy)
Collecting docutils (from kivy)
Using cached docutils-0.14-py3-none-any.whl
Collecting pygments (from kivy)
Using cached Pygments-2.2.0-py2.py3-none-any.whl
Collecting requests (from Kivy-Garden>=0.1.4->kivy)
Using cached requests-2.18.4-py2.py3-none-any.whl
Collecting urllib3<1.23,>=1.21.1 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached urllib3-1.22-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached certifi-2017.7.27.1-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached idna-2.6-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests->Kivy-Garden>=0.1.4->kivy)
Using cached chardet-3.0.4-py2.py3-none-any.whl
Building wheels for collected packages: kivy
Running setup.py bdist_wheel for kivy ... done
Stored in directory: /home/gabriel/.cache/pip/wheels/44/dc/e1/8f36be467f9d8c3b27d172a64a55b887212b86727684ca18e8
Successfully built kivy
Installing collected packages: urllib3, certifi, idna, chardet, requests, Kivy-Garden, docutils, pygments, kivy
Successfully installed Kivy-Garden-0.1.4 certifi-2017.7.27.1 chardet-3.0.4 docutils-0.14 idna-2.6 kivy-1.10.0 pygments-2.2.0 requests-2.18.4 urllib3-1.22
正在测试
gabriel@gryphon:/tmp> python
Python 3.6.1 (default, Mar 22 2017, 06:17:05)
[GCC 6.3.0 20170321] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kivy
[INFO ] [Logger ] Record log in /home/gabriel/.kivy/logs/kivy_17-09-02_1.txt
[INFO ] [Kivy ] v1.10.0
[INFO ] [Python ] v3.6.1 (default, Mar 22 2017, 06:17:05)
[GCC 6.3.0 20170321]
>>>
同样的事情发生在我身上。 阅读其中一条评论后 here,我又安装了几个包来让它工作(不确定是否所有这些都是必需的)
apt-get install python3.6 idle-python3.6 python3.6-doc python3.6-examples libpython3.6 libpython3.6-stdlib python-clang-3.6 python-lldb-3.6 libpython3.6-dbg python3.6-venv
然后,我制作了一个新的 virtualenv 并专门安装了 Cython==0.25.2:
mkvirtualenv kivyinstall -p python3.6
workon kivyinstall
pip install Cython==0.25.2
pip install Kivy==1.10.0
这成功了。不幸的是,使用最新的 Cython 版本对我不起作用。 我想知道 Kivy 人什么时候会对此进行测试。在 Kivy's installation page 中写道 Cython==0.25 是推荐的版本,但 Cython 从那时起就一直在前进。
我正在 运行ning Ubuntu 16.04 和 运行ning Eclipse Oxygen 2018。我安装了 pip 想要 运行 python3.6
(1) 须藤 pip3.6 安装 python3.6
(2) sudo apt-get 更新
(3) sudo pip3.6 安装 cython
- sudo pip3.6 安装 kivy
从命令行终端测试 python3.6
下一步 >>> 如果没有错误将在 3.6 中运行,则导入 cython
下一步 >>> import kivy your golden 在我的系统上没有错误。
所以最酷的部分是现在我可以使用它与 Eclipse 的集成。 快乐编码希望这对您有所帮助..