Keyword Extraction

Por TextMiner | Actualizada 2ヶ月前 | Tools

7.2 / 10



Nivel de servicio


Health Check


Volver a todas las conversaciones

unable to use pip to install unirest to run API

Rapid account: Uvlight 1

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 2年前

****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年前

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 5年前

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年前

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年前

close it

Rapid account: Rapid Alex
RapidAlex Commented 7年前

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

Únase a la conversación, añada un comentario a continuación:

Inicie sesió/Regístrese para publicar nuevos comentarios