如何解决python pywhatkit模块需要花费很多时间才能安装,而不能在linux中安装
我在linux(raspberry pi 4)中使用vs代码,当我尝试使用pip安装pywhatkit python模块时,pip3安装pywhatkit,它会下载pywhatkit的一些数据,一段时间后会冻结(运行安装程序。 py bdist_wheel用于opencv-python ...)
Collecting pywhatkit
Using cached https://files.pythonhosted.org/packages/ba/27/19c5271c06a8cc6c8f8716728d42416a9bee93016a916b69bb338eff99dd/pywhatkit-2.9-py3-none-any.whl
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from pywhatkit) (1.16.2)
Requirement already satisfied: requests in /usr/lib/python3/dist-packages (from pywhatkit) (2.21.0)
Requirement already satisfied: Pillow in /usr/lib/python3/dist-packages (from pywhatkit) (5.4.1)
Requirement already satisfied: pyautogui in /home/pi/.local/lib/python3.7/site-packages (from pywhatkit) (0.9.50)
Requirement already satisfied: beautifulsoup4 in /usr/lib/python3/dist-packages (from pywhatkit) (4.7.1)
Requirement already satisfied: wikipedia in /home/pi/.local/lib/python3.7/site-packages (from pywhatkit) (1.4.0)
Collecting opencv-python (from pywhatkit)
Using cached https://files.pythonhosted.org/packages/77/f5/49f034f8d109efcf9b7e98fbc051878b83b2f02a1c73f92bbd37f317288e/opencv-python-4.4.0.42.tar.gz
Installing build dependencies ... done
Requirement already satisfied: pyscreeze>=0.1.21 in /home/pi/.local/lib/python3.7/site-packages (from pyautogui->pywhatkit) (0.1.26)
Requirement already satisfied: pymsgbox in /home/pi/.local/lib/python3.7/site-packages (from pyautogui->pywhatkit) (1.0.8)
Requirement already satisfied: pygetwindow>=0.0.5 in /home/pi/.local/lib/python3.7/site-packages (from pyautogui->pywhatkit) (0.0.8)
Requirement already satisfied: PyTweening>=1.0.1 in /home/pi/.local/lib/python3.7/site-packages (from pyautogui->pywhatkit) (1.0.3)
Requirement already satisfied: mouseinfo in /home/pi/.local/lib/python3.7/site-packages (from pyautogui->pywhatkit) (0.1.3)
Requirement already satisfied: python3-Xlib; platform_system == "Linux" and python_version >= "3.0" in /home/pi/.local/lib/python3.7/site-packages (from pyautogui->pywhatkit) (0.15)
Requirement already satisfied: pyrect in /home/pi/.local/lib/python3.7/site-packages (from pygetwindow>=0.0.5->pyautogui->pywhatkit) (0.1.4)
Requirement already satisfied: pyperclip in /home/pi/.local/lib/python3.7/site-packages (from mouseinfo->pyautogui->pywhatkit) (1.8.0)
Building wheels for collected packages: opencv-python
Running setup.py bdist_wheel for opencv-python ...
解决方法
Pywhatkit的作者在这里。
Pywhatkit依赖于约80MB的Opencv-python库,并且安装需要花费一些时间,尤其是在Internet速度较慢的情况下。 我期待找到一种替代方法来代替使用此大库,我将尽快发布新的更新。
或者,尝试单独安装Opencv或安装pywhatkit的某些早期版本(
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。