Open zhaoqi571436204 opened 2 months ago
You can install the transformers
package by downloading a ZIP file, and then follow these steps:
Access the GitHub Repository: Open your browser and visit the Hugging Face transformers repository page.
Download ZIP: On the repository page, click the green Code button, then select Download ZIP from the dropdown menu. This will download the latest version of the repository as a ZIP file.
Unzip the File: Extract the downloaded ZIP file into a folder of your choice.
Open Command Line: Once the file is unzipped, open a command line tool (CMD or PowerShell on Windows, Terminal on macOS or Linux).
Navigate to the Folder: Use the cd
command to navigate to the directory where the files were extracted. For example, if the folder is on your desktop, you can use the following command:
cd ~/Desktop/transformers # Replace with your actual folder path
Install the Package: Inside this folder, run the following command to install the package:
pip install .
This command will install the Python package as defined in the setup.py
or pyproject.toml
(for newer Python packaging methods) located in the root directory of the ZIP file.
Looking in indexes: https://pypi.doubanio.com/simple, https://pypi.oystermercury.top/ms
Looking in links: https://mirror.sjtu.edu.cn/pytorch-wheels/torch_stable.html
Collecting git+https://github.com/huggingface/transformers (from -r D:\AI\ComfyUI-aki-v1.3\custom_nodes\ComfyUI_Qwen2-VL-Instruct\requirements.txt (line 14))
Cloning https://github.com/huggingface/transformers to c:\users\zhaoqi\appdata\local\temp\pip-req-build-9b06oyhy
Running command git clone --filter=blob:none --quiet https://github.com/huggingface/transformers 'C:\Users\zhaoqi\AppData\Local\Temp\pip-req-build-9b06oyhy'
fatal: unable to access 'http://github.com/huggingface/transformers/': The requested URL returned error: 403
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/huggingface/transformers 'C:\Users\zhaoqi\AppData\Local\Temp\pip-req-build-9b06oyhy' did not run successfully.
│ exit code: 128
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× git clone --filter=blob:none --quiet https://github.com/huggingface/transformers 'C:\Users\zhaoqi\AppData\Local\Temp\pip-req-build-9b06oyhy' did not run successfully.
│ exit code: 128
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[程序异常退出,退出代码为 1 (0x00000001)]