[PYTHON] It took me half a day to install Polyglot in the anaconda environment on my mac, so I'll leave a note

[Recommended for natural language processing of English sentences! I tried using a handy Polyglot. ](Http: // ...) looks interesting, so I tried to install something called Polyglot, but it was a thorny path for programming beginners. I will leave a note for the future. I will leave the failure case at the end.

Introduction

Import the related modules described in the above blog.

next

Download the tarball in the "From Source" section in the middle of here

And

Unzip the downloaded tarball and put the entire folder into the anaconda site-package.

Finally

Execute setup.py of the unzipped file. When you run Don't forget to add $ python setup.py install and" install "!

I thought the mission was completed successfully, but I was just standing at the starting line. I'm going to play with Polyglot right away.

Traps that tend to fall

--It is good to install with pip easily, but it cannot be used in the anaconda environment (import error occurs). ――It was a short while that I was relieved that I was led by Google to reach the Anaconda Cloud page. When I run conda install -c derickl polyglot, I get the following error, and for some reason I get angry with Google.

error



Fetching package metadata ...............
Solving package specifications: .

UnsatisfiableError: The following specifications were found to be in conflict:
  - polyglot -> futures >=2.1.6 -> python 2.6*
  - python 3.6*
Use "conda info <package>" to see the dependencies for each package.

Recommended Posts

It took me half a day to install Polyglot in the anaconda environment on my mac, so I'll leave a note
[Python] How to save the installed package and install it in a new environment at once Mac environment
A note on how to load a virtual environment in PyCharm
Install anaconda on a new Mac anyway
Personal Note Package to install on Anaconda
I wanted to use the find module of Ansible2, but it took some time, so make a note
I've built an environment to try using TensorFlow on mac, so my memo
A record of the time it took to deploy mysql on Cloud9 + Rails
Install and set Jupyter Notebook to create a study note creation environment [Mac]
How to install the deep learning framework Tensorflow 1.0 in the Anaconda environment of Windows
[Note] How to create a Mac development environment
How to build a beautiful Python environment on a new Mac and install Jupter Notebook
Make it easy to install the ROS2 development environment with pip install on Python venv
It is difficult to install a green screen, so I cut out only the face and superimposed it on the background image
Steps to install the latest Python on your Mac
Procedure to install TensorFlow in fish shell environment (Anaconda 4.0.0)
When I tried to install PIL and matplotlib in a virtualenv environment, I was addicted to it.
A story that makes it easier to see Model debugging in the Django + SQLAlchemy environment
My dog said, "Make me a star on Youtube!", So I analyzed it with Youtube API.
How to delete "(base)" that appears in the terminal when Anaconda is installed on Mac