Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to install mmh3 #8657

Closed
sourabhQA opened this issue Jul 30, 2020 · 9 comments
Closed

Not able to install mmh3 #8657

sourabhQA opened this issue Jul 30, 2020 · 9 comments
Labels
type: support User Support

Comments

@sourabhQA
Copy link

What did you want to do?

Output

Paste what pip outputted in a code block. https://github.github.com/gfm/#fenced-code-blocks

Additional information

@triage-new-issues triage-new-issues bot added the S: needs triage Issues/PRs that need to be triaged label Jul 30, 2020
@McSinyx
Copy link
Contributor

McSinyx commented Jul 30, 2020

Hello there, could you please file the issue template to make it easier to debug the situation here?

@sourabhQA

This comment has been minimized.

@McSinyx
Copy link
Contributor

McSinyx commented Jul 30, 2020

Thanks, could you

Paste what pip outputted in a code block. https://github.github.com/gfm/#fenced-code-blocks

@sourabhQA
Copy link
Author

sourabhQA commented Jul 30, 2020

C:\Users\Saurabh bhandari\AppData\Local\Programs\Python\Python38>pip install mmh3
Collecting mmh3
  Using cached mmh3-2.5.1.tar.gz (9.8 kB)
Using legacy 'setup.py install' for mmh3, since package 'wheel' is not installed.
Installing collected packages: mmh3
    Running setup.py install for mmh3 ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\users\saurabh bhandari\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Saurabh bhandari\\AppData\\Local\\Temp\\pip-install-ukiszg0q\\mmh3\\setup.py'"'"'; __file__='"'"'C:\\Users\\Saurabh bhandari\\AppData\\Local\\Temp\\pip-install-ukiszg0q\\mmh3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Saurabh bhandari\AppData\Local\Temp\pip-record-iye5vtng\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\saurabh bhandari\appdata\local\programs\python\python38\Include\mmh3'
         cwd: C:\Users\Saurabh bhandari\AppData\Local\Temp\pip-install-ukiszg0q\mmh3\
    Complete output (11 lines):
    running install
    running build
    running build_ext
    building 'mmh3' extension
    creating build
    creating build\temp.win-amd64-3.8
    creating build\temp.win-amd64-3.8\Release
    C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD "-Ic:\users\saurabh bhandari\appdata\local\programs\python\python38\include" "-Ic:\users\saurabh bhandari\appdata\local\programs\python\python38\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.26.28801\include" /EHsc /Tpmmh3module.cpp /Fobuild\temp.win-amd64-3.8\Release\mmh3module.obj
    mmh3module.cpp
    mmh3module.cpp(12): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
    error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.26.28801\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\saurabh bhandari\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Saurabh bhandari\\AppData\\Local\\Temp\\pip-install-ukiszg0q\\mmh3\\setup.py'"'"'; __file__='"'"'C:\\Users\\Saurabh bhandari\\AppData\\Local\\Temp\\pip-install-ukiszg0q\\mmh3\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Saurabh bhandari\AppData\Local\Temp\pip-record-iye5vtng\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\saurabh bhandari\appdata\local\programs\python\python38\Include\mmh3' Check the logs for full command output.

@uranusjr
Copy link
Member

You need to install the Windows SDK. Open the Visual Studio Installer (it seems like you already have Build Tools 2019 installed), and select the Windows 10 SDK to install.

@uranusjr uranusjr added S: awaiting response Waiting for a response/more information type: support User Support labels Jul 30, 2020
@triage-new-issues triage-new-issues bot removed the S: needs triage Issues/PRs that need to be triaged label Jul 30, 2020
@sourabhQA
Copy link
Author

You need to install the Windows SDK. Open the Visual Studio Installer (it seems like you already have Build Tools 2019 installed), and select the Windows 10 SDK to install.

Capture

i have already installed Windows SDK please see the image and thanks for the reply

@no-response no-response bot removed the S: awaiting response Waiting for a response/more information label Jul 30, 2020
@uranusjr
Copy link
Member

Are you using the Developer Command Prompt (or Developer PowerShell) to run the pip install command? Those shells populate necessary environment settings for pip to find the files for compilation.

@sourabhQA
Copy link
Author

I have used both normal CMD as well as Developer PowerShell both are providing the same error.

@sourabhQA sourabhQA reopened this Jul 30, 2020
@pradyunsg
Copy link
Member

pradyunsg commented Aug 30, 2020

Hi!

If you're still facing issues with this, I suggest reaching out to one of the following: python-list or python-tutor mailing lists, #python on Freenode (IRC) or StackOverflow. pip's development team does not have sufficient resources to provide support to each individual user, and you'd likely have better luck getting help on those channels, for the issue you're facing.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: support User Support
Projects
None yet
Development

No branches or pull requests

4 participants