Skip to content

Unable to install on Windows #357

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

Open
UnitedMarsupials opened this issue Apr 8, 2025 · 1 comment
Open

Unable to install on Windows #357

UnitedMarsupials opened this issue Apr 8, 2025 · 1 comment

Comments

@UnitedMarsupials
Copy link

UnitedMarsupials commented Apr 8, 2025

Although I do have Visual Studio 2022 (v17.13.6, with Build Tools) installed already, pip is still unable to install python-gssapi:

pip install --user python-gssapi
Collecting python-gssapi
  Using cached python-gssapi-0.6.4.tar.gz (28 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      running dist_info
      creating C:\Users\meow\AppData\Local\Temp\pip-modern-metadata-9do2fu7a\python_gssapi.egg-info
      writing C:\Users\meow\AppData\Local\Temp\pip-modern-metadata-9do2fu7a\python_gssapi.egg-info\PKG-INFO
      writing dependency_links to C:\Users\meow\AppData\Local\Temp\pip-modern-metadata-9do2fu7a\python_gssapi.egg-info\dependency_links.txt
      writing requirements to C:\Users\meow\AppData\Local\Temp\pip-modern-metadata-9do2fu7a\python_gssapi.egg-info\requires.txt
      writing top-level names to C:\Users\meow\AppData\Local\Temp\pip-modern-metadata-9do2fu7a\python_gssapi.egg-info\top_level.txt
      writing manifest file 'C:\Users\meow\AppData\Local\Temp\pip-modern-metadata-9do2fu7a\python_gssapi.egg-info\SOURCES.txt'
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Image

Please, advise.

@jborean93
Copy link
Contributor

The python-gssapi on PyPI is the older variant of this library

There is a newer project which has superseded this one, https://github.com/pythongssapi/python-gssapi. Please use that package if suitable for your needs, as this project is unlikely to be developed further.

You want the gssapi package on PyPI which is built from this repo. There are wheels for Windows as well so you don't need the build tools.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants