Unique question - Python

Hi,

I’m been running into roadblocks when I’ve been trying to install modules like pygame and pyperclip. Even though I added the paths, it’s still telling me “unable to install”. I don’t know what I’m doing wrong.

I’ve already watched and followed many Youtube videos.
Do you have any advice on how to get these installed?
I’m even okay bringing my computer to a store if that’s the only option.
Please, do you have any advice?

Thank you very much,
Josh

Hi Josh,
How are you adding them? What OS?

Or, are you using something like Google Colab and running into issues?

It sounds like an installation issue. I found this, maybe it would be of some help?
https://stackoverflow.com/questions/18317521/importerror-no-module-named-pygame#23418392

1 Like

Try the pygame subreddit. Be as clear as you can with your issue, they can sort you out (they’ve helped me plenty before when writing with pygame).

@board4185331766 yes, that’s the badger!

2 Likes

Hi Lisa,

The computer that I use for Python has Windows 10.

I think you might be right, it seems like pygame isn’t yet avail for python 3.8:
https://stackoverflow.com/questions/58489348/unable-to-install-pygame-on-python-3-8-via-pip-windows-10#:~:text=Pygame%20is%20not%20compatible%20with,and%20installing%20with%20pip%20there.&text=pip%20is%20doesn’t%20have%20pygame%20up.&text=you%20also%20need%20to%20update%20your%20code%20to%20pygame%202.0.

I’m unfamiliar with Google Colab (I’ll Google it right now).
Do you have any advice on how to get it installed?

Thank you very much,
Josh

Hi Toastedpitabread,

Do you mean this site: https://www.reddit.com/r/pygamedev/

Thank you,
Josh

You can make a virtual environment with a different version of python that does support it.

@board4185331766

2 Likes

I’m sorry, I’m not familiar with that module.

Google Colab is based on Jupyter Notebooks and you can run Python in it as well as connect to sql servers with it. It’s cloud-based and you can install it on google drive.

I use it and I really like it.

1 Like

I wasn’t familiar with this.

So, I’m very new at this… Are you saying with Google colabs I can use python on the web (instead of directly on my laptop) and on the website colabs I can use python and download pygames (for use on the website) but not on my computer?

Thank you very much,
Josh

It’s okay! I wasn’t familiar with it until early last year. (I mean, is there anything google can’t do? :joy:)

Yep. You can open any .ipynb file in Colab and import any (at least I believe it’s any) python library into Colab and go from there. Mind you, I’ve only used Colab for data science/analysis—so, the usual, scipy, math, pandas, seaborn, etc. I seem to recall some issue with Geopandas, but can’t remember the specifics. So, from a data analysis angle, you can import .csv files directly from your machine with this code:
from google.colab import files uploaded = files.upload()
or mount your Drive to Colab and grab files that way.

There are Colab intro videos and lots of documentation to read up on. But, it’s easy to use (IMO).
check this out:
https://medium.com/deep-learning-turkey/google-colab-free-gpu-tutorial-e113627b9f5d#:~:text=What%20is%20Google%20Colab%3F,TensorFlow%2C%20PyTorch%2C%20and%20OpenCV.

2 Likes

Thank you very much Toastedpitabread! :slight_smile:

Thank you very much, Lisa! I am very grateful! :slight_smile:

2 Likes

Sure! No problem! Happy coding! :slight_smile:

1 Like