amansrivastava17 / embedding-as-service

One-Stop Solution to encode sentence to fixed length vectors from various embedding techniques
MIT License
204 stars 29 forks source link

Unable to install on Python 3.10 #80

Open alitalaghat opened 1 year ago

alitalaghat commented 1 year ago

Tested on Windows 11 and Python 3.10.11

# pip install embedding-as-service
Collecting embedding-as-service
  Using cached embedding_as_service-3.1.2-py3-none-any.whl (140 kB)
Collecting keras==2.2.4 (from embedding-as-service)
  Using cached Keras-2.2.4-py2.py3-none-any.whl (312 kB)
Collecting tqdm==4.32.2 (from embedding-as-service)
  Using cached tqdm-4.32.2-py2.py3-none-any.whl (50 kB)
Collecting numpy==1.16.4 (from embedding-as-service)
  Using cached numpy-1.16.4.zip (5.1 MB)
  Preparing metadata (setup.py) ... done
Collecting requests==2.21.0 (from embedding-as-service)
  Using cached requests-2.21.0-py2.py3-none-any.whl (57 kB)
Collecting bert-tensorflow==1.0.1 (from embedding-as-service)
  Using cached bert_tensorflow-1.0.1-py2.py3-none-any.whl (67 kB)
Collecting tensorflow-hub==0.4.0 (from embedding-as-service)
  Using cached tensorflow_hub-0.4.0-py2.py3-none-any.whl (75 kB)
Collecting smart-open==6.2.0 (from embedding-as-service)
  Using cached smart_open-6.2.0-py3-none-any.whl (58 kB)
INFO: pip is looking at multiple versions of embedding-as-service to determine which version is compatible with other requirements. This could take a while.
Collecting embedding-as-service
  Using cached embedding_as_service-3.1.1-py3-none-any.whl (140 kB)
Collecting smart-open==1.8.4 (from embedding-as-service)
  Using cached smart_open-1.8.4.tar.gz (63 kB)
  Preparing metadata (setup.py) ... done
Collecting embedding-as-service
  Using cached embedding_as_service-3.1.0-py3-none-any.whl (140 kB)
  Using cached embedding_as_service-3.0.2-py3-none-any.whl (140 kB)
  Using cached embedding_as_service-3.0.1-py3-none-any.whl (140 kB)
  Using cached embedding_as_service-3.0.0-py3-none-any.whl (140 kB)
  Using cached embedding_as_service-2.0.2-py3-none-any.whl (140 kB)
  Using cached embedding_as_service-2.0.1-py2.py3-none-any.whl (140 kB)
INFO: pip is looking at multiple versions of embedding-as-service to determine which version is compatible with other requirements. This could take a while.
  Using cached embedding_as_service-2.0.0-py3-none-any.whl (140 kB)
  Using cached embedding_as_service-1.6.0-py3-none-any.whl (138 kB)
  Using cached embedding_as_service-1.5.0-py3-none-any.whl (137 kB)
  Using cached embedding_as_service-1.4.0-py3-none-any.whl (137 kB)
  Using cached embedding_as_service-1.3.0-py3-none-any.whl (130 kB)
INFO: This is taking longer than usual. You might need to provide the dependency resolver with stricter constraints to reduce runtime. See https://pip.pypa.io/warnings/backtracking for guidance. If you want to abort this run, press Ctrl + C.
  Using cached embedding_as_service-1.0.0-py3-none-any.whl (129 kB)
  Using cached embedding_as_service-0.9.0-py3-none-any.whl (129 kB)
  Using cached embedding_as_service-0.8.0-py3-none-any.whl (129 kB)
  Using cached embedding_as_service-0.7.0-py3-none-any.whl (128 kB)
  Using cached embedding_as_service-0.6.0-py3-none-any.whl (128 kB)
  Using cached embedding_as_service-0.5.0-py3-none-any.whl (128 kB)
  Using cached embedding_as_service-0.4.0-py3-none-any.whl (127 kB)
  Using cached embedding_as_service-0.3.0-py3-none-any.whl (127 kB)
  Using cached embedding_as_service-0.2.0-py3-none-any.whl (127 kB)
  Using cached embedding_as_service-0.1.0-py3-none-any.whl (127 kB)
  Using cached embedding_as_service-0.0.9-py3-none-any.whl (127 kB)
  Using cached embedding_as_service-0.0.8-py3-none-any.whl (127 kB)
  Using cached embedding_as_service-0.0.7-py3-none-any.whl (127 kB)
  Using cached embedding_as_service-0.0.6-py3-none-any.whl (125 kB)
  Using cached embedding_as_service-0.0.5-py3-none-any.whl (125 kB)
  Using cached embedding_as_service-0.0.4-py3-none-any.whl (125 kB)
  Using cached embedding_as_service-0.0.3.tar.gz (101 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "C:\Users\Ali\AppData\Local\Temp\pip-install-gt9gcw8y\embedding-as-service_0cc15a3bda0c440294a4eedf992672dc\setup.py", line 6, in <module>
          with open('requirements.txt') as f:
      FileNotFoundError: [Errno 2] No such file or directory: 'requirements.txt'
      [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.