F
F
funyk2022-03-31 18:24:41
pip
funyk, 2022-03-31 18:24:41

How to run the code copied from the Internet on Visual studio?

I copied the snake code from the Internet written in the pygame library in python, but unfortunately it did not start and threw an error on the very first line, the screen is below
6245c7a5d55cb437536126.png

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Danil Gorev, 2022-03-31
@ketovv

Learn the language gradually, rather than copying someone else's work.
For example, learn about virtual environments in Python and dependency management with pip .
This will bring you much more benefit.

D
Dmitry Volynsky, 2022-03-31
@sayonaratenzin

In general, it would be worth learning the language first. I advise you to read some books like the two volumes of Lutz "Learning Python" (if you are lazy, then I sympathize, you have no desire to code)

Y
YariKartoshe4ka, 2022-03-31
@YariKartoshe4ka

Try reinstalling windows

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question