0

我试图安装这个:https ://pythonrepo.com/repo/PrithivirajDamodaran-Parrot-python-natural-language-processing

它在 colab 中运行良好,但我不能在本地项目中使用它。当我尝试安装它时,使用 -> '''pip install git+https://github.com/PrithivirajDamodaran/Parrot.git'''

我收到此错误:

(venv) C:\Users\Lucav\Meine Ablage\Programming\Python\Projects\Kalabros>pip install git+https://github.com/PrithivirajDamodaran/Parrot.git
Collecting git+https://github.com/PrithivirajDamodaran/Parrot.git
  Cloning https://github.com/PrithivirajDamodaran/Parrot.git to c:\users\lucav\appdata\local\temp\pip-req-build-dy6qzvk2
  Running command git clone --filter=blob:none -q https://github.com/PrithivirajDamodaran/Parrot.git 'C:\Users\Lucav\AppData\Local\Temp\pip-req-build-dy6qz
vk2'
  Resolved https://github.com/PrithivirajDamodaran/Parrot.git to commit 3b9f139fe42a2b8e423477c5eec53ab4e728d914
  Preparing metadata (setup.py) ... done
Collecting transformers
  Using cached transformers-4.12.2-py3-none-any.whl (3.1 MB)
Collecting sentencepiece
  Using cached sentencepiece-0.1.96-cp38-cp38-win32.whl (1.0 MB)
Collecting python-Levenshtein
  Using cached python-Levenshtein-0.12.2.tar.gz (50 kB)
  Preparing metadata (setup.py) ... done
Collecting sentence-transformers
  Using cached sentence-transformers-2.1.0.tar.gz (78 kB)
  Preparing metadata (setup.py) ... done
Collecting fuzzywuzzy
  Using cached fuzzywuzzy-0.18.0-py2.py3-none-any.whl (18 kB)
Requirement already satisfied: setuptools in c:\users\lucav\meine ablage\programming\python\projects\kalabros\venv\lib\site-packages (from python-Levenshte
in->parrot==1.0) (58.3.0)
Collecting tokenizers>=0.10.3
  Using cached tokenizers-0.10.3-cp38-cp38-win32.whl (1.8 MB)
Collecting tqdm
  Using cached tqdm-4.62.3-py2.py3-none-any.whl (76 kB)
Collecting sentence-transformers
  Using cached sentence-transformers-2.0.0.tar.gz (85 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-1.2.1.tar.gz (80 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-1.2.0.tar.gz (81 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-1.1.1.tar.gz (81 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-1.1.0.tar.gz (78 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-1.0.4.tar.gz (74 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-1.0.3.tar.gz (74 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-1.0.2.tar.gz (74 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-1.0.1.tar.gz (74 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-1.0.0.tar.gz (74 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.4.1.2.tar.gz (64 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.4.1.1.tar.gz (64 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.4.1.tar.gz (64 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.4.0.tar.gz (65 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.3.9.tar.gz (64 kB)
  Preparing metadata (setup.py) ... done
Collecting transformers
  Using cached transformers-3.5.1-py3-none-any.whl (1.3 MB)
Collecting sentence-transformers
  Using cached sentence-transformers-0.3.8.tar.gz (66 kB)
  Preparing metadata (setup.py) ... done
Collecting transformers
  Using cached transformers-3.3.1-py3-none-any.whl (1.1 MB)
Collecting sentence-transformers
  Using cached sentence-transformers-0.3.7.2.tar.gz (59 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.3.7.1.tar.gz (59 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.3.7.tar.gz (59 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.3.6.tar.gz (62 kB)
  Preparing metadata (setup.py) ... done
Collecting transformers
  Using cached transformers-3.1.0-py3-none-any.whl (884 kB)
Collecting sentence-transformers
  Using cached sentence-transformers-0.3.5.1.tar.gz (61 kB)
  Preparing metadata (setup.py) ... done
Collecting transformers
  Using cached transformers-3.0.2-py3-none-any.whl (769 kB)
Collecting sentence-transformers
  Using cached sentence-transformers-0.3.5.tar.gz (61 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.3.4.tar.gz (61 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.3.3.tar.gz (65 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.3.2.tar.gz (65 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.3.1.tar.gz (64 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.3.0.tar.gz (61 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.2.6.2.tar.gz (60 kB)
  Preparing metadata (setup.py) ... done
Collecting transformers
  Using cached transformers-2.11.0-py3-none-any.whl (674 kB)
Collecting sentence-transformers
  Using cached sentence-transformers-0.2.6.1.tar.gz (55 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.2.6.tar.gz (55 kB)
  Preparing metadata (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\users\lucav\meine ablage\programming\python\projects\kalabros\venv\scripts\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.ar
gv[0] = '"'"'C:\\Users\\Lucav\\AppData\\Local\\Temp\\pip-install-sttnw9m8\\sentence-transformers_6843ebf31082422296c347ab5533c8c9\\setup.py'"'"'; __file__=
'"'"'C:\\Users\\Lucav\\AppData\\Local\\Temp\\pip-install-sttnw9m8\\sentence-transformers_6843ebf31082422296c347ab5533c8c9\\setup.py'"'"';f = getattr(tokeni
ze, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('
"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Lucav\AppData\Local\Temp\pip-pip-egg-in
fo-an01p6za'
       cwd: C:\Users\Lucav\AppData\Local\Temp\pip-install-sttnw9m8\sentence-transformers_6843ebf31082422296c347ab5533c8c9\
  Complete output (5 lines):
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "C:\Users\Lucav\AppData\Local\Temp\pip-install-sttnw9m8\sentence-transformers_6843ebf31082422296c347ab5533c8c9\setup.py", line 6, in <module>
      with open('requirements.txt', mode="r", encoding="utf-8") as req_file:
  FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
  ----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/51/9d/cef25b5faabdc1b54d218012ee821292312e139e76cc40105c824ad024bb/sentence-transformers-0.2.6.
tar.gz#sha256=a5f01a7b0fd03c0f8a3920712ebf3698b1ed331e87123c5864ed927346f00df5 (from https://pypi.org/simple/sentence-transformers/). Command errored out w
ith exit status 1: python setup.py egg_info Check the logs for full command output.
  Using cached sentence-transformers-0.2.5.1.tar.gz (52 kB)
  Preparing metadata (setup.py) ... done
Collecting transformers
  Using cached transformers-2.3.0-py3-none-any.whl (447 kB)
Collecting sentence-transformers
  Using cached sentence-transformers-0.2.5.tar.gz (49 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.2.4.1.tar.gz (49 kB)
  Preparing metadata (setup.py) ... done
Collecting transformers
  Using cached transformers-2.2.1-py3-none-any.whl (364 kB)
Collecting sentence-transformers
  Using cached sentence-transformers-0.2.4.tar.gz (49 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.2.3.tar.gz (45 kB)
  Preparing metadata (setup.py) ... done
Collecting pytorch-transformers==1.1.0
  Using cached pytorch_transformers-1.1.0-py3-none-any.whl (158 kB)
Collecting sentence-transformers
  Using cached sentence-transformers-0.2.2.tar.gz (44 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.2.1.tar.gz (42 kB)
  Preparing metadata (setup.py) ... done
Collecting pytorch-transformers==1.0.0
  Using cached pytorch_transformers-1.0.0-py3-none-any.whl (137 kB)
Collecting sentence-transformers
  Using cached sentence-transformers-0.2.0.tar.gz (28 kB)
  Preparing metadata (setup.py) ... done
  Using cached sentence-transformers-0.1.0.tar.gz (35 kB)
  Preparing metadata (setup.py) ... done
INFO: pip is looking at multiple versions of python-levenshtein to determine which version is compatible with other requirements. This could take a while.
Collecting python-Levenshtein
  Using cached python-Levenshtein-0.12.1.tar.gz (50 kB)
  Preparing metadata (setup.py) ... done
INFO: pip is looking at multiple versions of fuzzywuzzy to determine which version is compatible with other requirements. This could take a while.
Collecting fuzzywuzzy
  Using cached fuzzywuzzy-0.17.0-py2.py3-none-any.whl (13 kB)
INFO: pip is looking at multiple versions of parrot to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install parrot because these package versions have conflicting dependencies.

The conflict is caused by:
    sentence-transformers 2.1.0 depends on torch>=1.6.0
    sentence-transformers 2.0.0 depends on torch>=1.6.0
    sentence-transformers 1.2.1 depends on torch>=1.6.0
    sentence-transformers 1.2.0 depends on torch>=1.6.0
    sentence-transformers 1.1.1 depends on torch>=1.6.0
    sentence-transformers 1.1.0 depends on torch>=1.6.0
    sentence-transformers 1.0.4 depends on torch>=1.6.0
    sentence-transformers 1.0.3 depends on torch>=1.6.0
    sentence-transformers 1.0.2 depends on torch>=1.6.0
    sentence-transformers 1.0.1 depends on torch>=1.6.0
    sentence-transformers 1.0.0 depends on torch>=1.6.0
    sentence-transformers 0.4.1.2 depends on torch>=1.6.0
    sentence-transformers 0.4.1.1 depends on torch>=1.6.0
    sentence-transformers 0.4.1 depends on torch>=1.6.0
    sentence-transformers 0.4.0 depends on torch>=1.6.0
    sentence-transformers 0.3.9 depends on torch>=1.6.0
    sentence-transformers 0.3.8 depends on torch>=1.2.0
    sentence-transformers 0.3.7.2 depends on torch>=1.2.0
    sentence-transformers 0.3.7.1 depends on torch>=1.2.0
    sentence-transformers 0.3.7 depends on torch>=1.2.0
    sentence-transformers 0.3.6 depends on torch>=1.2.0
    sentence-transformers 0.3.5.1 depends on torch>=1.2.0
    sentence-transformers 0.3.5 depends on torch>=1.2.0
    sentence-transformers 0.3.4 depends on torch>=1.2.0
    sentence-transformers 0.3.3 depends on torch>=1.2.0
    sentence-transformers 0.3.2 depends on torch>=1.2.0
    sentence-transformers 0.3.1 depends on torch>=1.2.0
    sentence-transformers 0.3.0 depends on torch>=1.0.1
    sentence-transformers 0.2.6.2 depends on torch>=1.0.1
    sentence-transformers 0.2.6.1 depends on torch>=1.0.1
    sentence-transformers 0.2.5.1 depends on torch>=1.0.1
    sentence-transformers 0.2.5 depends on torch>=1.0.1
    sentence-transformers 0.2.4.1 depends on torch>=1.0.1
    sentence-transformers 0.2.4 depends on torch>=1.0.1
    sentence-transformers 0.2.3 depends on torch>=1.0.1
    sentence-transformers 0.2.2 depends on torch>=1.0.1
    sentence-transformers 0.2.1 depends on torch>=1.0.1
    sentence-transformers 0.2.0 depends on torch>=1.0.1
    sentence-transformers 0.1.0 depends on torch>=1.0.1

To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip attempt to solve the dependency conflict

ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/user_guide/#fixing-conflicting-dependencies
4

0 回答 0