Keyword Extraction

(Ким) TextMiner | Оновлено 2 years ago | Tools

9.3 / 10



Рівень обслуговування


Повернутися до всіх обговорень

unable to use pip to install unirest to run API

Rapid account: Uvlight 1
6 years ago

I wanted to try the Keyword Extraction API. I have been using Anaconda, and Sypder and it seems that from their documentation I should be able to use pip to install, like what is on the unirest website. However I get the following when I use pip install unirest. I am using a Mac Air. I haven’t tried to use this type a API service, and it might be very useful.

Collecting unirest
Downloading Unirest-1.1.7.tar.gz
Collecting poster>=0.8.1 (from unirest)
Downloading poster-0.8.1.tar.gz
Complete output from command python egg_info:
Traceback (most recent call last):
File “<string>”, line 1, in <module>
File “/private/var/folders/y1/p26x4kc55ns2lmrkpkzr_s380000gn/T/pip-build-oh96lipf/poster/”, line 2, in <module>
import poster
File “/private/var/folders/y1/p26x4kc55ns2lmrkpkzr_s380000gn/T/pip-build-oh96lipf/poster/poster/”, line 29, in <module>
import poster.streaminghttp
File “/private/var/folders/y1/p26x4kc55ns2lmrkpkzr_s380000gn/T/pip-build-oh96lipf/poster/poster/”, line 61
print “send:”, repr(value)
SyntaxError: invalid syntax


Command “python egg_info” failed with error code 1 in /private/var/folders/y1/p26x4kc55ns2lmrkpkzr_s380000gn/T/pip-build-oh96lipf/poster/

Rapid account: Jayvardhan 142005
jayvardhan142005 Commented a year ago

****Traceback (most recent call last):

File “C:\Users\USER.spyder-py3\”, line 1, in <module>
import Unirest

ModuleNotFoundError: No module named ‘Unirest’****

Rapid account: Richardaginga
richardaginga Commented 3 years ago

It worked, but the import statement gives me this error…

import unirest


 File "/usr/local/lib/python3.6/dist-packages/unirest/", line 98
    except urllib2.HTTPError, e:
SyntaxError: invalid syntax

(Running on google colab)


Rapid account: Krishchaganti
krishchaganti Commented 4 years ago

new to python and trying to get some help

pip install unirest

Collecting unirest
Collecting poster>=0.8.1 (from unirest)
ERROR: Command errored out with exit status 1: python egg_info Check the logs for full command output.

Rapid account: Rahulbroy
rahulbroy Commented 5 years ago

I am having the same problem. Considering the PY2 is not going to be supported further within a year, shouldn’t the unirest be made compatible with PY3?

Rapid account: Textanalysis
textanalysis Commented 6 years ago

close it

Rapid account: Rapid Alex
RapidAlex Commented 6 years ago

Hey there! You’re going to need to install unirest using python2. To do this:

$ python2 --version

(This will ensure that you have python2)

Then run

$ python2 -m pip install unirest

Приєднуйтесь до обговорення — додайте повідомлення нижче:

Вхід / Реєстрація, щоб публікувати нові повідомлення