jackwquinton
jackwquinton

Reputation: 33

suddenly can't install packages to pycharm? (Installing dependencies from Pipfile.lock error?)

Error is posted here as pastebin, it's very long

'''https://pastebin.com/8ssgGNdL'''

(edit paste bin expired) https://pastebin.com/BRuPeifp

I've since tried installing packages using pip3 and still get similar results. I haven't changed anything since the last time I installed 'requests'

I'm sorry if i'm asking an annoying question. I've googled similar questions but nothing seems to help. If anyone can point me in the right place to look and solve this for my self I will be very grateful.

Upvotes: 1

Views: 226

Answers (3)

jackwquinton
jackwquinton

Reputation: 33

~ Solved ~

pygame doesn't work with python3.8 so I had to use:

pipenv install pygame==2.0.0.dev6

when testing by trying to install other packages such as requests, I was met with the same error. This error was infact the error for pygame repeating itself (I don't understand why)

Upvotes: 1

Hampus Larsson
Hampus Larsson

Reputation: 3100

It seems like it's crashing while installing PyGame. According the PyGame's Getting Started page there seems to be some issues with newer version of OS X.

Quoting from the page:

If your examples aren't running and you are using a recent version of Mac OS X; try this line to install pygame instead:

python3 -m pip install -U pygame==2.0.0.dev6 --user

Also looking over the Internet, the problem might be because of Python3.8 itself, and therefore requiring a newer version to resolve the issue.

Upvotes: 1

Thomas Portwood
Thomas Portwood

Reputation: 1081

The error states:

fatal error: 'SDL.h' file not found

and

For help with compilation see:', 'https://www.pygame.org/wiki/MacCompile'

It looks like one or more of the SDL dependencies is missing.

Have you installed SDL dependencies mentioned on that page using HomeBrew?

Upvotes: 1

Related Questions