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

安装依赖git+https://github.com/qubvel/segmentation_models.pytorch其子依赖huggingface-hub报错 #4

Open
Akimio521 opened this issue Oct 11, 2024 · 2 comments

Comments

@Akimio521
Copy link

PS C:\Users\akimio\Documents\Work\Kaggle-Steel-Defect-Detection> pip install git+https://github.com/qubvel/segmentation_models.pytorch
Collecting git+https://github.com/qubvel/segmentation_models.pytorch
  Cloning https://github.com/qubvel/segmentation_models.pytorch to c:\users\akimio\appdata\local\temp\pip-req-build-p3vrcook
  Running command git clone --filter=blob:none --quiet https://github.com/qubvel/segmentation_models.pytorch 'C:\Users\akimio\AppData\Local\Temp\pip-req-build-p3vrcook'
  Resolved https://github.com/qubvel/segmentation_models.pytorch to commit 8def40f3b35026fa5ebc4b14ddab2feeb0010111
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.19.3 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models-pytorch==0.3.5.dev0) (1.21.6)
Requirement already satisfied: pillow>=8 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models-pytorch==0.3.5.dev0) (9.2.0)
Requirement already satisfied: efficientnet-pytorch>=0.6.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models-pytorch==0.3.5.dev0) (0.6.3)
Collecting timm>=0.9
  Using cached timm-0.9.12-py3-none-any.whl (2.2 MB)
Requirement already satisfied: torchvision>=0.9 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models-pytorch==0.3.5.dev0) (0.14.1)
Requirement already satisfied: torch>=1.8 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models-pytorch==0.3.5.dev0) (1.13.1)
Requirement already satisfied: six>=1.5 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models-pytorch==0.3.5.dev0) (1.16.0)
Requirement already satisfied: tqdm>=4.42.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models-pytorch==0.3.5.dev0) (4.66.5)
Collecting pretrainedmodels>=0.7.1
  Using cached pretrainedmodels-0.7.4.tar.gz (58 kB)
  Preparing metadata (setup.py) ... done
ERROR: Ignored the following versions that require a different python version: 0.17.0 Requires-Python >=3.8.0; 0.17.0rc0 Requires-Python >=3.8.0; 0.17.1 Requires-Python >=3.8.0; 0.17.2 Requires-Python >=3.8.0; 0.17.3 Requires-Python >=3.8.0; 0.18.0 Requires-Python >=3.8.0; 0.18.0rc0 Requires-Python >=3.8.0; 0.19.0 Requires-Python >=3.8.0; 0.19.0rc0 Requires-Python >=3.8.0; 0.19.1 Requires-Python >=3.8.0; 0.19.2 Requires-Python >=3.8.0; 0.19.3 Requires-Python >=3.8.0; 0.19.4 Requires-Python >=3.8.0; 0.20.0 Requires-Python >=3.8.0; 0.20.0rc0 Requires-Python >=3.8.0; 0.20.0rc1 Requires-Python >=3.8.0; 0.20.1 Requires-Python >=3.8.0; 0.20.2 Requires-Python >=3.8.0; 0.20.3 Requires-Python >=3.8.0; 0.21.0 Requires-Python >=3.8.0; 0.21.0rc0 Requires-Python >=3.8.0; 0.21.1 Requires-Python >=3.8.0; 0.21.2 Requires-Python >=3.8.0; 0.21.3 Requires-Python >=3.8.0; 0.21.4 Requires-Python >=3.8.0; 0.22.0 Requires-Python >=3.8.0; 0.22.0rc0 Requires-Python >=3.8.0; 0.22.0rc1 Requires-Python >=3.8.0; 0.22.1 Requires-Python >=3.8.0; 0.22.2 Requires-Python >=3.8.0; 0.23.0 Requires-Python >=3.8.0; 0.23.0rc0 Requires-Python >=3.8.0; 0.23.0rc1 Requires-Python >=3.8.0; 0.23.1 Requires-Python >=3.8.0; 0.23.2 Requires-Python >=3.8.0; 0.23.3 Requires-Python >=3.8.0; 0.23.4 Requires-Python >=3.8.0; 0.23.5 Requires-Python >=3.8.0; 0.24.0 Requires-Python >=3.8.0; 0.24.0rc0 Requires-Python >=3.8.0; 0.24.1 Requires-Python >=3.8.0; 0.24.2 Requires-Python >=3.8.0; 0.24.3 Requires-Python >=3.8.0; 0.24.4 Requires-Python >=3.8.0; 0.24.5 Requires-Python >=3.8.0; 0.24.6 Requires-Python >=3.8.0; 0.24.7 Requires-Python >=3.8.0; 0.25.0 Requires-Python >=3.8.0; 0.25.0rc0 Requires-Python >=3.8.0; 0.25.0rc1 Requires-Python >=3.8.0; 0.25.1 Requires-Python >=3.8.0; 0.25.2 Requires-Python >=3.8.0; 0.9.16 Requires-Python >=3.8; 1.0.3 Requires-Python >=3.8; 1.0.7 Requires-Python >=3.8; 1.0.8 Requires-Python >=3.8; 1.0.9 Requires-Python >=3.8
ERROR: Could not find a version that satisfies the requirement huggingface-hub>=0.24 (from segmentation-models-pytorch) (from versions: 0.0.1, 0.0.2, 0.0.3rc1, 0.0.3rc2, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.11, 0.0.12, 0.0.13, 0.0.14, 0.0.15, 0.0.16, 0.0.17, 0.0.18, 0.0.19, 0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.2.1, 0.4.0, 0.5.0, 0.5.1, 0.6.0rc0, 0.6.0, 0.7.0rc0, 0.7.0, 0.8.0rc0, 0.8.0rc1, 0.8.0rc2, 0.8.0rc3, 0.8.0rc4, 0.8.0, 0.8.1, 0.9.0.dev0, 0.9.0rc0, 0.9.0rc2, 0.9.0rc3, 0.9.0, 0.9.1, 0.10.0rc0, 0.10.0rc1, 0.10.0rc3, 0.10.0, 0.10.1, 0.11.0rc0, 0.11.0rc1, 0.11.0, 0.11.1, 0.12.0rc0, 0.12.0, 0.12.1, 0.13.0rc0, 0.13.0rc1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.13.4, 0.14.0rc0, 0.14.0rc1, 0.14.0, 0.14.1, 0.15.0rc0, 0.15.0, 0.15.1, 0.16.0rc0, 0.16.1, 0.16.2, 0.16.3, 0.16.4)
ERROR: No matching distribution found for huggingface-hub>=0.24
@zdaiot
Copy link
Owner

zdaiot commented Oct 11, 2024

更换一下软件源试试呢,我看https://pypi.org/project/huggingface-hub/,这个是有huggingface-hub>=0.24的

@Akimio521
Copy link
Author

并没有使用使用第三方软件源,使用的是默认的pip源
我尝试先安装huggingface-hub(使用的是目前最新的0.13.4),再安装segmentation_models

pip install git+https://github.com/qubvel/segmentation_models
Collecting git+https://github.com/qubvel/segmentation_models
  Cloning https://github.com/qubvel/segmentation_models to c:\users\akimio\appdata\local\temp\pip-req-build-p7ar5mup
  Running command git clone --filter=blob:none --quiet https://github.com/qubvel/segmentation_models 'C:\Users\akimio\AppData\Local\Temp\pip-req-build-p7ar5mup'
  Resolved https://github.com/qubvel/segmentation_models to commit 5d24bbfb28af6134e25e2c0b79e7727f6c0491d0
  Running command git submodule update --init --recursive -q
  Preparing metadata (setup.py) ... done
Requirement already satisfied: keras_applications<=1.0.8,>=1.0.7 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models==1.0.1) (1.0.8)
Requirement already satisfied: image-classifiers==1.0.0 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models==1.0.1) (1.0.0)
Requirement already satisfied: efficientnet==1.1.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from segmentation-models==1.0.1) (1.1.1)
Requirement already satisfied: scikit-image in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from efficientnet==1.1.1->segmentation-models==1.0.1) (0.19.3)
Requirement already satisfied: h5py in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from keras_applications<=1.0.8,>=1.0.7->segmentation-models==1.0.1) (3.8.0)
Requirement already satisfied: numpy>=1.9.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from keras_applications<=1.0.8,>=1.0.7->segmentation-models==1.0.1) (1.21.6)
Requirement already satisfied: pillow!=7.1.0,!=7.1.1,!=8.3.0,>=6.1.0 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (9.2.0)
Requirement already satisfied: networkx>=2.2 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (2.6.3)
Requirement already satisfied: packaging>=20.0 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (23.2)
Requirement already satisfied: scipy>=1.4.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (1.7.3)
Requirement already satisfied: PyWavelets>=1.1.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (1.3.0)
Requirement already satisfied: imageio>=2.4.1 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (2.35.1)
Requirement already satisfied: tifffile>=2019.7.26 in c:\users\akimio\.conda\envs\kaggle-steel-defect-detection\lib\site-packages (from scikit-image->efficientnet==1.1.1->segmentation-models==1.0.1) (2021.11.2)

出现以上提示,但models/model.py还是无法正确import对应的package

image

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