Share your repls and programming experiences

← Back to all posts
Using Pip On Repl.it
tra38

Repl.it allows you to easily load Python modules that are on PyPi, but I needed to write some code that relied on a Python module hosted on GitHub specifically (long story short: it's a temporary fork of another Python package, and I didn't feel it would be necessary to deploy it up onto PyPi). So I wound up doing some weird stuff to wind up using that Python package hosted on GitHub.

You can read my blog post to explain the weird stuff that I did: https://tra38.github.io/blog/using-pip-on-repl-it.html

Here is my final Repl (https://repl.it/@tra38/LittleNiftySubweb-Experimental\) where I successfully loaded up my Python package from GitHub.

I hope this experience will be useful for you if you wind up needing to do something like this!

Voters
DevPandaContact
GM20
McJoe21
chihuynhminh1
PurestMemes
west
PaoloAmoroso
ZobDuTurfu
LardBoi
Elvin_
Comments
hotnewtop
PaoloAmoroso

Your post is 8 months old. I've joined Repl.it just a few weeks ago and I see git is now available in the shell. I was wondering if you later got a chance to try pip with GitHub.

tra38

@PaoloAmoroso Eventually, my code was merged into the master branch and the updated package deployed onto PyPy, so I didn't really need to maintain the "Experimental" repl, and just used https://repl.it/@tra38/LittleNiftySubweb exclusively.

Your post did inspire me to fork my existing repl and update it to use git instead of a zip file. It works wonderfully. Here's my new repl that proves that I can indeed install package with pip using a git url. No more zip files for me!

The code snippet:

PaoloAmoroso

@tra38 Thanks for the update.

JJJ2008

Doesn't work for me? Any help? It says module howdoi not found.

tra38

@JJJ2008 Hi, I just tried to run the repl and it works for me, but I do see an exception message:

Looking at the GitHub issue link, it seems that sometimes it might raise the "module [module_name] not found" error, so I will try to fix that warning. For now, can you try the script to see if it is now usable? Thanks.

JJJ2008

@tra38 still doesn't work, but I found a different way

HHKSYT

@JJJ2008 can you please tell me how to do it