Getting Started with Kivy | Setup | Walkthrough | Intro | for MacOSX

preview_player
Показать описание
Setup kivy documentation can be found below this link:

1. Install Homebrew:

Open a terminal

2. After Homebrew is installed you use the brew command and install the following dependencies:

brew install pkg-config sdl2 sdl2_image sdl2_ttf sdl2_mixer gstreamer

Install python3.9.5 using homebrew:

3. Exit out of terminal and reopen terminal

4. Install Xcode:

xcode-select --install

5. Create a projects folder in your home directory

Go back to your terminal

Use cd to change directory to the projects folder you have created

6. Clone project from github

cd Technews

python3 -m venv env

. env/bin/activate

cd app

Install missing modules:

pip install requests
pip install bs4

Run the app again:

Timestamps
0:00 Intro
0:48 Install Homebrew
1:30 Install Dependencies For Kivy
3:58 Install Python 3.9.5
5:06 Install Xcode
5:50 Create Projects Folder
7:15 Clone Github Kivy Project
8:48 Setup Python Environment
10:06 Try To Run Kivy App
10:15 Install Modules
11:34 Run Kivy App Successfully
13:00 Outro
Рекомендации по теме
Комментарии
Автор

Thank you for the tutorial.

I had recently a problem installing Kivy, it was related to the latest version of python. I was running the 3.10.1 one, so to install Kivy correctly without using conda, I had to downgrade my python version to the 3.9.9. It worked perfectly. Apparently it's a common problem for the newest versions of python.

mohamedbenhsain
Автор

After this tutorial I know how to run a kivy app, but how do I start coding one? When type import kivy in a python file there is an error.

willdiana
Автор

Hello, is it possible to get help from you, even that the Tutorial is 2 years old?
Greetings from Germany.

nilsleonhardt
Автор

Hi I got error that says "command not found: brew" when installing the dependencies. Can you help pls. Thanks a lot.

aaronrecto
Автор

Why do we download xcode if we can just use pycharm?

nikg
Автор

Hey I did what you said but whenever I try to run python3 main.py it says "Unable to import kivy._clock."

hookedllc
Автор

it didnt work i keep getting the same eror any help
ERROR: Failed building wheel for kivy
Failed to build kivy
ERROR: Could not build wheels for kivy, which is required to install pyproject.toml-based projects

Bjbjbj
Автор

I love this so much thank u brother, shrooms woo I think u would like maybe

Retrobloom
Автор

No available formula with the name "pkg-config"

How do i solve this error?

Thx

nicopitel
Автор

evrything worked but I got no news lol it said no news or wrong spelling

Simoiram
Автор

I get the following error, can you help me with that?
ERROR: Failed building wheel for kivy
Failed to build kivy
ERROR: Could not build wheels for kivy which use PEP 517 and cannot be installed directly

dogukanyaprak
Автор

Didn't work for me. Do you use the M1 CPU or is that video recorded with an intel machine? I get an Error "No suitable image found. Did find [...] mach-o, but wrong architecture" after "pip install Kivy" and trying to launch

Naraxus