djoser icon indicating copy to clipboard operation
djoser copied to clipboard

Sample usage pip install not working for me

Open fabtjar opened this issue 3 years ago • 2 comments

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.

fabtjar avatar Mar 13 '21 08:03 fabtjar

pip install djoser works for me just not with pip install -e ..

fabtjar avatar Mar 13 '21 08:03 fabtjar

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

McCarthyCode avatar Mar 22 '21 12:03 McCarthyCode