I can’t download "pygame" or "kivy" via the "Pip install..." command

Asked

Viewed 648 times

1

When I try to download the pygame appears the following, remembering that my pc is windows 10 - 64bits. python 3.7.0b3 (64bits)

  • These problems occur when the manager pip is out of date. In this case, you have to first update Pip, then install the libraries you want.

3 answers

0

Pygame installation

Below I will leave some links that can help you

  1. Video on Youtube "teaching" step-by-step. (In English)

  2. Installing in Python 3.6

  3. Note also this response in the forum itself.

Installing the stable version of Kivy:

  1. Make sure you have the latest versions of Pip, wheel and virtualenv (optional).

    • Optionally create a new virtual environment for your Kivy project. # Highly recommended.
      1. First, create the environment called kivy_venv in your current directory: python -m virtualenv kivy_venv.

      2. Activate the virtual environment. You will need to perform this step in the current directory whenever you open a new terminal. On Windows CMD, do: kivy_venv\Scripts\activate.

        If you are in a terminal bash, do: source kivy_venv/Scripts/activate.

    Your terminal should now precede the path with something like (kivy_venv), indicating that the kivy_venv environment is active. If it does not say so, the virtual environment is not active.

  2. Install dependencies. If you are updating Kivy, see Updating Kivy from an earlier version : python -m pip install docutils pygments pypiwin32 kivy_deps.sdl2==0.1.* kivy_deps.glew==0.1.*

    If you find a Memoryerror during installation, add after the pip install the option –no-cache-dir.

    For Python 3.5+, you can also use the Angle backend instead of Glew. You can install it with: python -m pip install kivy_deps.angle==0.1.*

  3. Install the Kivy: python -m pip install kivy==1.11.1

I hope I helped! Hugs and good studies!

0

Is your Pip up to date? If not, update with the following command: Pip install --upgrade Pip.

Remember to open cmd as administrator.

0

you can try to install it manually by going here and downloading the version compatible with your operating system as pygame‑1.9.6‑cp37‑cp37m‑win_amd64.whl then go to the directory and install pip install pygame‑1.9.6‑cp37‑cp37m‑win_amd64.whl

Browser other questions tagged

You are not signed in. Login or sign up in order to post.