7

I am running:

pip install --editable .

and get the following:

Obtaining file:///content/nlp_tokenization_project
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1: /usr/bin/python3 /usr/local/lib/python3.6/dist-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpkhbslig1 Check the logs for full command output.

I made sure I have the Wheel package:

Requirement already satisfied: wheel in /usr/local/lib/python3.6/dist-packages (0.35.1)

How can I fix this?

theletz
  • 1,713
  • 2
  • 16
  • 22
Danielle H
  • 79
  • 1
  • 1
  • 2

1 Answers1

2

I had the same problem when I tried to install a local package into my project's virtual environment:

ERROR: Command errored out with exit status 1: 
.venv/bin/python .venv/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl
/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmp25qfke7j 

The solution was to simply remove the offending pep517 wheel:

rm .venv/share/python-wheels/pep517-0.7.0-py2.py3-none-any.whl

After running pip install -e . again, the build requirements were obtained automatically and everything worked out fine.

jnns
  • 5,148
  • 4
  • 47
  • 74