#๐Ÿ”’ Problem when Importing PyPNG

14 messages ยท Page 1 of 1 (latest)

misty lintel
#

Hello, when I want to import Pypng (import png) to run the program it says "no module named png", I've already installed it with pip install pypng. I'm actually on python 3.8, if someone can help me that's cool.

gentle gorgeBOT
#

@misty lintel

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

keen bluff
#

How are you running your Python file (e.g. through the command line? Or through your editor?)

misty lintel
keen bluff
#

Could you try running python -m pip install pypng in the same terminal that you're running? Assuming you run the file with e.g. python myfile.py

misty lintel
#

it's says that it's already installed

misty lintel
keen bluff
#

Try running it manually using python path/to/file.py

misty lintel
#

it worked !

#

thank you

#

๐Ÿ‘

gentle gorgeBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.