尽管安装了模块,但找不到“ kivy”模块

时间:2020-11-09 15:59:47

标签: python pip kivy

今天我的设置给我一个曲线球:

(android) mark@python:~/frontend_android$ pip3 freeze
appdirs==1.4.4
buildozer==1.2.0
certifi==2020.11.8
chardet==3.0.4
Cython==0.29.21
distlib==0.3.1
docutils==0.16
filelock==3.0.12
idna==2.10
imutils==0.5.3
Kivy==2.0.0rc4
Kivy-Garden==0.1.4
numpy==1.19.4
opencv-contrib-python==4.4.0.46
pexpect==4.8.0
Pillow==8.0.0
plyer==1.4.3
ptyprocess==0.6.0
Pygments==2.7.2
pytesseract==0.3.6
requests==2.24.0
sh==1.14.1
six==1.15.0
urllib3==1.25.11
virtualenv==20.1.0
(android) mark@python:~/frontend_android$ python
Python 3.8.5 (default, Jul 28 2020, 12:59:40) 
[GCC 9.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import kivy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'kivy'

考虑到我只有系统上运行的Python 3.8.5和最新的pip,怎么办?

1 个答案:

答案 0 :(得分:0)

很多人都有这个问题,我发现对很多人有用的解决方案是直接从车轮上安装它。

python -m pip install --upgrade pip wheel setuptools virtualenv