Skip to content
Unable to add packages
Profile icon
RushankGoyal

Hi
I'm new to repl.it and so far I've been wondering how I ever coded without it! It's awesome
A few minutes ago I tried to add packages like biopython and pygame. However, no matter how much I tried it always showed "Repl.it: Package operation failed."
Can someone help me?

You are viewing a single comment. View All
Answered by CodeLongAndPros [earned 5 cycles]
View Answer
Profile icon
CodeLongAndPros

How did you try to add the packages?
By doing:

from pygame import *

Or going through the GUI?

Profile icon
CodeLongAndPros

@RushankGoyal
, I tried installing it in a repl, and it worked. Can you try to make a new Repl?

Screenshot_20200322_094628

Profile icon
RushankGoyal

@CodeLongAndPros
Through the GUI but it doesn't work even when I add through text

Profile icon
CodeLongAndPros

@RushankGoyal
Can you post a screenshot of what you are doing?

Profile icon
RushankGoyal

@CodeLongAndPros

Screen Shot 2020-03-21 at 8.02.01 PM
Screen Shot 2020-03-21 at 8.03.22 PM

Here I have posted screenshots of both the methods (text and GUI). On the command line the message on the top pic shows what happens when I try it with text & the bottom pic shows the GUI result

Profile icon
CodeLongAndPros

@RushankGoyal
Can you import other packages like numpy or getch?

Profile icon
RushankGoyal

@CodeLongAndPros

Sorry for the long delay it was nighttime where I live. For some reason it has no problems importing numpy and getch, and others like matplotlib

Profile icon
CodeLongAndPros

@RushankGoyal
I think that the problem may lay with biopython. I’ll try installing it on my local machine.

Profile icon
CodeLongAndPros

Screenshot_20200322_094104

Profile icon
RushankGoyal

@CodeLongAndPros
Thanks a lot! It finally worked! I'll remember this tip for other packages in the future

Profile icon
CodeLongAndPros

@RushankGoyal
, If it fixed the problem, please mark as solved.

Profile icon
RushankGoyal

@CodeLongAndPros
Sure! Thanks for helping me

Profile icon
CodeLongAndPros

@RushankGoyal
, you're welcome!