Home > Blockchain >  Is there a way to automatically download all the packages(and the correct versions) needed to run th
Is there a way to automatically download all the packages(and the correct versions) needed to run th

Time:12-13

Looking to run someone else's code from a Github repo that i've cloned onto my local machine.

Quite a few packages and I was wondering if there was a way to 'automatically' (or at most using a few lines in terminal) set up my conda environment so that I can run the files without having to manually go and download each package?

CodePudding user response:

I assume this code is in python. If so, then if they have a requirements.txt file you can run pip install -r requirements.txt to install them all. If not you will manually have to pip install each one.

CodePudding user response:

If the repo is having a file called package.json. then use the command npm install. this command will automatically install all the packages mentioned in the package.json file

  • Related