You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Trying to install gptqmodel with pip.
python -m venv .venv_cuda
. .\.venv_cuda\Scripts\activate
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
pip install -v gptqmodel --no-build-isolation
Using pip 23.0.1 from D:\dev_projects\test_storyboard_tools\story_cowriter\.venv_cuda\lib\site-packages\pip (python 3.10)
Collecting gptqmodel
Using cached gptqmodel-1.9.0.tar.gz (213 kB)
Running command python setup.py egg_info
Both latest setuptools and wheel package are not found. Please upgrade to latest setuptools: `pip install -U setuptools`
error: subprocess-exited-with-error
× python setup.py egg_info did not run successfully.
│ exit code: 1
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: 'D:\dev_projects\test_storyboard_tools\story_cowriter\.venv_cuda\Scripts\python.exe' -c '
exec(compile('"'"''"'"''"'"'
# This is <pip-setuptools-caller> -- a caller that pip uses to run setup.py
#
# - It imports setuptools before invoking setup.py, to enable projects that directly
# import from `distutils.core` to work with newer packaging standards.
# - It provides a clear error message when setuptools is not installed.
# - It sets `sys.argv[0]` to the underlying `setup.py`, when invoking `setup.py` so
# setuptools doesn'"'"'t think the script is `-c`. This avoids the following warning:
# manifest_maker: standard file '"'"'-c'"'"' not found".
# - It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute `setup.py` since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
__file__ = %r
sys.argv[0] = __file__
if os.path.exists(__file__):
filename = __file__
with tokenize.open(__file__) as f:
setup_py_code = f.read()
else:
filename = "<auto-generated setuptools caller>"
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'C:\\Users\\searo\\AppData\\Local\\Temp\\pip-install-7ld4v3ne\\gptqmodel_9e777b9bf79c4d66aabef0ec3d2c004c\\setup.py'"'"',), "<pip-setuptools-caller>", "exec"))' egg_info --egg-base 'C:\Users\searo\AppData\Local\Temp\pip-pip-egg-info-l2qvb9j8'
cwd: C:\Users\searo\AppData\Local\Temp\pip-install-7ld4v3ne\gptqmodel_9e777b9bf79c4d66aabef0ec3d2c004c\
Preparing metadata (setup.py) ... error
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.
Describe the bug
Trying to install gptqmodel with pip.
Second attempt:
pip install -U setuptools
Requirement already satisfied: setuptools in d:\dev_projects\test_storyboard_tools\story_cowriter.venv_cuda\lib\site-packages (65.5.0)
Collecting setuptools
Using cached setuptools-75.8.0-py3-none-any.whl (1.2 MB)
Installing collected packages: setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 65.5.0
Uninstalling setuptools-65.5.0:
Successfully uninstalled setuptools-65.5.0
Successfully installed setuptools-75.8.0
GPU Info
Show output of:
Software Info
Operation System/Version + Python Version
Windows 11 Pro 24H2
Python 3.10.16
Show output of:
If you are reporting an inference bug of a post-quantized model, please post the content of
config.json
andquantize_config.json
.To Reproduce
How to reproduce this bug if possible.
Attempt to install using pip in PowerShell on Windows.
Expected behavior
A clear and concise description of what you expected to happen.
Installation to run successfully.
Model/Datasets
Make sure your model/dataset is downloadable (on HF for example) so we can reproduce your issue.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
I ran a test script to ensure that CUDA is installed and available.
The text was updated successfully, but these errors were encountered: