djoser
djoser copied to clipboard
Sample usage pip install not working for me
On the Sample usage page I follow the instructions but get an error with pip:
$ git clone [email protected]:sunscrapers/djoser.git
$ cd djoser
$ pip install -e .
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /Users/fabtjar/dev/djoser (A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)
Not sure if I'm doing something wrong with pip. In the /Users/fabtjar/dev/djoser
directory I'm creating a virtual environment like this:
$ python3 -m venv env
$ . env/bin/activate
I'm using macOS Big Sur 11.2 and pip 21.0.1.
pip install djoser
works for me just not with pip install -e .
.
I get the same error in Arch Linux.
$ pip install -e .
ERROR: File "setup.py" not found. Directory cannot be installed in editable mode: /home/matt/Repositories/djoser
(A "pyproject.toml" file was found, but editable mode currently requires a setup.py based build.)
Version info:
$ pip --version
pip 21.0.1 from /home/matt/Repositories/djoser/.env/lib/python3.9/site-packages/pip (python 3.9)
$ uname -r
5.11.2-arch1-1