`pip install -e .[dev,doc,test]` in contributing documention wont work, is this a documentation error?
See original GitHub issueFirst 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
i am trying to execute upper command in my local python virtual env, and got error return:
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:
- Created a year ago
- Comments:11 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just tested here locally, it doesn’t seem to work on
zsh
but it does work onbash
. 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.This answer on SO explains what
.[test,dev,docs]
does; it installs the optional dependencies inpyproject.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?