Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error in installing python package Flair, about a dependent package not hosted in PyPI

I am trying to install flair. It is throwing below error when executing below command:

pip install flair

ERROR: Packages installed from PyPI cannot depend on packages which are not also hosted on PyPI.
tiny-tokenizer depends on SudachiDict_core@ https://object-storage.tyo2.conoha.io/v1/nc_2520839e1f9641b08211a5c85243124a/sudachi/SudachiDict_core-20190927.tar.gz

I thought installing this package explicitly might fix the error but it doesn't. The error remains same. The installed version of SudachiDict-core is below: SudachiDict-core 0.0.0

Below is the Environment:

  • OS: Windows 10
  • Python: 3.6 (64 bit)

Any hint is appreciated. Thank you!

Note:

  • First hurdle when installing flair was torch package. It was resolved simply when torch package is installed. The error looked like below: ERROR: Could not find a version that satisfies the requirement torch>=1.1.0 (from flair) (from verERROR: No matching distribution found for torch>=1.1.0 (from flair)
like image 826
Irshad Ali Avatar asked Jan 02 '20 06:01

Irshad Ali


People also ask

What command is used to install Python modules from PyPI?

Installing Python pip on your system allows you to manage PyPI packages easily. Many of these packages can be installed just by typing python -m pip install <package-name> into a terminal or command-line. Newer versions of Python 3 (3.4 and higher) and Python 2 (2.7.


1 Answers

You can try

pip install --upgrade git+https://github.com/zalandoresearch/flair.git

Source: https://github.com/flairNLP/flair/issues/1327#issuecomment-571639994

Or

to install separately:

pip install tiny-tokenizer

After this run:

pip install flair
like image 77
Gabriel Custódio Eng Avatar answered Oct 23 '22 04:10

Gabriel Custódio Eng