Flair: how to install flair in anaconda?

Created on 26 Dec 2018  路  8Comments  路  Source: flairNLP/flair

Is it possible to use flair with anaconda and jupyter? Thanks

question

Most helpful comment

use this command for install flair "pip install flair --no-deps"

All 8 comments

Is it possible to use flair with anaconda and jupyter? Thanks

You can use flair with anaconda and jupyter, just needpip install flair .

Is it possible to use flair with anaconda and jupyter? Thanks

You can use flair with anaconda and jupyter, just needpip install flair .

i used pip but this message appear "Could not find a version that satisfies the requirement torch==1.0.0 (from flair) (from versions: 0.1.2, 0.1.2.post1) No matching distribution found for torch==1.0.0 (from flair)" (i have python 3.6 installed)

Is it possible to use flair with anaconda and jupyter? Thanks

You can use flair with anaconda and jupyter, just needpip install flair .

i used pip but this message appear "Could not find a version that satisfies the requirement torch==1.0.0 (from flair) (from versions: 0.1.2, 0.1.2.post1) No matching distribution found for torch==1.0.0 (from flair)" (i have python 3.6 installed)

I met this problem before, and solve it by : Install Pytorch first then install Flair.
when you plan to install Pytorch ,you can find the install command accroding your preferences in Pytorch

I had an issue that jupyter testpath package didn't give permission to install flair . I tried a different approach to solve it. Only one way which worked for me it is deleting testpath, and installing flair, and installing testpath package again. Here the the step:

pip uninstall testpath
pip install flair
pip install testpath

P.S : Please, don't judge strictly. I'm in the beginning of my way to become Data Scientist :)

Is it possible to use flair with anaconda and jupyter? Thanks

You can use flair with anaconda and jupyter, just needpip install flair .

i used pip but this message appear "Could not find a version that satisfies the requirement torch==1.0.0 (from flair) (from versions: 0.1.2, 0.1.2.post1) No matching distribution found for torch==1.0.0 (from flair)" (i have python 3.6 installed)

@cerlymarco , just uninstall your pytorch version and reinstall the 1.0.0 version.

use this command for install flair "pip install flair --no-deps"

Is it possible to use flair with anaconda and jupyter? Thanks

You can use flair with anaconda and jupyter, just needpip install flair .

i used pip but this message appear "Could not find a version that satisfies the requirement torch==1.0.0 (from flair) (from versions: 0.1.2, 0.1.2.post1) No matching distribution found for torch==1.0.0 (from flair)" (i have python 3.6 installed)

Maybe it's because you do not have a CUDA-capable system or do not require CUDA, as said in pythorch website. You should try:

Python 2.7

pip install https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp27-cp27mu-linux_x86_64.whl
pip install torchvision

if the above command does not work, then you have python 2.7 UCS2, use this command

pip install https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp27-cp27m-linux_x86_64.whl

Python 3.5

pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp35-cp35m-linux_x86_64.whl
pip3 install torchvision

Python 3.6

pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp36-cp36m-linux_x86_64.whl
pip3 install torchvision

Python 3.7

pip3 install https://download.pytorch.org/whl/cpu/torch-1.0.1.post2-cp37-cp37m-linux_x86_64.whl
pip3 install torchvision

Here's the info on the PyTorch website, with options to choose which OS you're installing onto, which Python version you're installing for, whether you want nightly builds, etc.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ciaochiaociao picture ciaochiaociao  路  3Comments

gopalkalpande picture gopalkalpande  路  3Comments

alanakbik picture alanakbik  路  3Comments

mittalsuraj18 picture mittalsuraj18  路  3Comments

ChessMateK picture ChessMateK  路  3Comments