openai / human-eval

Code for the paper "Evaluating Large Language Models Trained on Code"
MIT License
2.31k stars 330 forks source link

Problems with installation instructions #4

Open jonpincus opened 3 years ago

jonpincus commented 3 years ago

After setting up my environment with conda, I ran into problems with

$ git checkout https://github.com/openai/human-eval
$ pip install -e human-eval

First, git checkout should be a git clone.

Then, when I run the pip command, I get

ERROR: human-eval is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).

heewooj commented 3 years ago

Thanks for catching git checkout. It's fixed now.

Hm.. I haven't seen that before. What python/pip version are you using? Could you try again with python 3.7 and the latest pip? I'm using

$ pip --version
pypip 21.1.3 ...
abtExp commented 2 years ago

@jonpincus , you can simply run pip install -e . from the human-eval directory after cloning.

mtisz commented 9 months ago

I keep getting this error:

ModuleNotFoundError: No module named 'human_eval.data'; 'human_eval' is not a package