Unable to install in Windows (httptools issue)
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 "fastapi[all]"
Building wheels for collected packages: python-multipart, httptools
Building wheel for python-multipart (setup.py) ... done
Created wheel for python-multipart: filename=python_multipart-0.0.5-py3-none-any.whl size=31678 sha256=5a0c20f7e898aadbc10f8e8c9736e376f3d492305cb9266036e48754bdbf1da9
Stored in directory: c:\users\mbnoimi\appdata\local\pip\cache\wheels\ae\3f\03\fa4bd98cd7f4a25e63b6a0b61a7a8352e0f874cd9de1f3390d
Building wheel for httptools (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Intro\venv\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\mbnoimi\\AppData\\Local\\Temp\\pip-install-35o0lyxh\\httptools_105e79679e1940cc8e5e0a1d1de53ece\\setup.py'"'"'; __file__='"'"'C:\\Users\\mbnoimi\\AppData\\Local\\Temp\\pip-install-35o0lyxh\\httptools_105e79679e1940cc8e5e0a1d1de53ece\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\mbnoimi\AppData\Local\Temp\pip-wheel-5g5uqoqu'
cwd: C:\Users\mbnoimi\AppData\Local\Temp\pip-install-35o0lyxh\httptools_105e79679e1940cc8e5e0a1d1de53ece\
Complete output (35 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\httptools
copying httptools\_version.py -> build\lib.win-amd64-3.10\httptools
copying httptools\__init__.py -> build\lib.win-amd64-3.10\httptools
creating build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\errors.py -> build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\__init__.py -> build\lib.win-amd64-3.10\httptools\parser
running egg_info
writing httptools.egg-info\PKG-INFO
writing dependency_links to httptools.egg-info\dependency_links.txt
writing requirements to httptools.egg-info\requires.txt
writing top-level names to httptools.egg-info\top_level.txt
reading manifest file 'httptools.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
adding license file 'LICENSE'
writing manifest file 'httptools.egg-info\SOURCES.txt'
copying httptools\parser\parser.c -> build\lib.win-amd64-3.10\httptools\parser
copying httptools\parser\url_parser.c -> build\lib.win-amd64-3.10\httptools\parser
running build_ext
building 'httptools.parser.parser' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\httptools
creating build\temp.win-amd64-3.10\Release\httptools\parser
creating build\temp.win-amd64-3.10\Release\vendor
creating build\temp.win-amd64-3.10\Release\vendor\llhttp
creating build\temp.win-amd64-3.10\Release\vendor\llhttp\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\mbnoimi\AppData\Local\Temp\pip-install-35o0lyxh\httptools_105e79679e1940cc8e5e0a1d1de53ece\vendor\llhttp\include -IC:\Users\mbnoimi\AppData\Local\Temp\pip-install-35o0lyxh\httptools_105e79679e1940cc8e5e0a1d1de53ece\vendor\llhttp\src -IC:\Intro\venv\include -IC:\Python310\include -IC:\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.10240.0\ucrt /Tchttptools/parser/parser.c /Fobuild\temp.win-amd64-3.10\Release\httptools/parser/parser.obj -O2
parser.c
C:\Python310\include\pyconfig.h(200): fatal error C1083: Cannot open include file: 'basetsd.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for httptools
Description
In Linux mint I could install FastAPI easily using pip install "fastapi[all]"
but in Windows I couldn’t! although I already installed Microsoft C++ Build Tools
Operating System
Windows 10
FastAPI Version
ModuleNotFoundError: No module named ‘fastapi’
Python Version
Python 3.10.0
Additional Context
(venv) c:\Intro>pip list
Package Version
----------------- -------
anyio 3.4.0
asgiref 3.4.1
click 8.0.3
colorama 0.4.4
h11 0.12.0
idna 3.3
MarkupSafe 2.0.1
pip 21.3.1
pydantic 1.8.2
python-dotenv 0.19.2
PyYAML 5.4.1
setuptools 57.4.0
six 1.16.0
sniffio 1.2.0
starlette 0.16.0
typing_extensions 4.0.1
urllib3 1.26.7
uvicorn 0.15.0
watchgod 0.7
websockets 10.1
wheel 0.37.0
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:6 (2 by maintainers)
Top Results From Across the Web
python - Failed to build httptools, how to fix it - Stack Overflow
As far as I understand, the problem is the incompatibility of the current version of httptools and python 3.10 If anyone finds a...
Read more >Failed building wheel for httptools in installing rasa in ...
Failed building wheel for httptools Running setup.py install for httptools ... i found its a python installation issue in windows 10.
Read more >Installation issue in windows - Sanic Community Discussion
I am trying to install Sanic into my windows system with using “pip3 install sanic” command. I am using latest Python latest version(3.7.4)....
Read more >httptools - PyPI
httptools is a Python binding for the nodejs HTTP parser. The package is available on PyPI: pip install httptools . APIs. httptools contains...
Read more >Problem while building uvloop/httptools : r/learnpython - Reddit
ERROR: Failed building wheel for httptools Running setup.py clean for httptools Failed to build uvloop httptools Installing collected ...
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
fastapi
anduvicorn
…Don’t use the
[all]
or the[standard]
. 😗 Maybe you’ll needpython-multipart
as well, which you’ll see right away.Thanks a lot @Kludex Worked like a charm.