question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`pip install -e .[dev,doc,test]` in contributing documention wont work, is this a documentation error?

See original GitHub issue

First Check

  • I added a very descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn’t find it.
  • I searched the FastAPI documentation, with the integrated search.
  • I already searched in Google “How to X in FastAPI” and didn’t find any information.
  • I already read and followed all the tutorial in the docs and didn’t find an answer.
  • I already checked if it is not related to FastAPI but to Pydantic.
  • I already checked if it is not related to FastAPI but to Swagger UI.
  • I already checked if it is not related to FastAPI but to ReDoc.

Commit to Help

  • I commit to help with one of those options 👆

Example Code

pip install -e .[dev,doc,test]

Description

image

i am trying to execute upper command in my local python virtual env, and got error return:

image

Operating System

Linux

Operating System Details

DISTRIB_ID=Ubuntu DISTRIB_RELEASE=22.04 DISTRIB_CODENAME=jammy DISTRIB_DESCRIPTION=“Ubuntu 22.04.1 LTS”

FastAPI Version

0.85.0

Python Version

3.10.7

Additional Context

i cloned latest fastapi, trying to understand how to generate docs, when i follow the following documention: https://fastapi.tiangolo.com/contributing/

esp when running following cmd:

pip install -e .[dev,doc,test]

got following result

zsh: no matches found: .[dev,doc,test]

what should i do? is this a documentation error?

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:11 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
JarroVGITcommented, Sep 20, 2022

I just tested here locally, it doesn’t seem to work on zsh but it does work on bash. As the docs also say to use bash, I don’t think it’s an error in the docs.

For using zsh, try this command: pip install -e '.[dev,docs,test]'. The single quotes will ensure that zsh will not try to use the bit between the brackets for pattern matching but takes the brackets as literal brackets.

1reaction
JarroVGITcommented, Sep 20, 2022

This answer on SO explains what .[test,dev,docs] does; it installs the optional dependencies in pyproject.toml.

It’s not a documentation error, FastAPI recently moved away from Flit, and this change was part of it. Can’t test it right now as I am on my phone, but maybe you can try it in bash rather than zsh?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot install into user site directory with editable source. #7953
pip3 install --user -e . doesn't work due to pip indicating the user site directory is disabled. I'm adapting @agoose77's workaround into a ......
Read more >
pip install - pip documentation v22.3.1
Description#. Install packages from: PyPI (and other indexes) using requirement specifiers. VCS project urls. Local project directories.
Read more >
When would the -e, --editable option be useful with pip install?
As the man page says it: -e,--editable <path/url> Install a project in editable mode (i.e. setuptools "develop mode") from a local project ...
Read more >
Development - Contributing - FastAPI
Every time you install a new package with pip under that environment, activate the environment again. This makes sure that if you use...
Read more >
Installing Python Modules — Python 3.11.1 documentation
Email, distutils-sig@python.org,. As a popular open source development project, Python has an active supporting community of contributors and users that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found