Keyword Extraction

FREEMIUM
Por TextMiner | Actualizada 2ヶ月前 | Tools
Popularidad

7.2 / 10

Latencia

571ms

Nivel de servicio

89%

Health Check

N/A

Volver a todas las conversaciones

unable to use pip to install unirest to run API

Rapid account: Uvlight 1
uvlight1
7年前

Hello,
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 setup.py 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/setup.py”, line 2, in <module>
import poster
File “/private/var/folders/y1/p26x4kc55ns2lmrkpkzr_s380000gn/T/pip-build-oh96lipf/poster/poster/init.py”, line 29, in <module>
import poster.streaminghttp
File “/private/var/folders/y1/p26x4kc55ns2lmrkpkzr_s380000gn/T/pip-build-oh96lipf/poster/poster/streaminghttp.py”, line 61
print “send:”, repr(value)
^
SyntaxError: invalid syntax

----------------------------------------

Command “python setup.py 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\untitled9.py”, line 1, in <module>
import Unirest

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

Rapid account: Richardaginga
richardaginga Commented 3年前

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

import unirest

Output:

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

(Running on google colab)

Thanks.

Rapid account: Krishchaganti
krishchaganti Commented 5年前

new to python and trying to get some help

pip install unirest

Collecting unirest
Downloading https://files.pythonhosted.org/packages/92/da/2149cbd7a8c78f8b76b377379c1bda64ec36cc13315d55f6f7de6d094ac5/Unirest-1.1.7.tar.gz
Collecting poster>=0.8.1 (from unirest)
Downloading https://files.pythonhosted.org/packages/9f/dc/0683a458d21c3d561ab2f71b4fcdd812bf04e55c54e560b0854cea95610e/poster-0.8.1.tar.gz
ERROR: Command errored out with exit status 1: python setup.py 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:
run

$ 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