mardi 22 avril 2014

Python 2.7 - impossible d'installer quoi que ce soit à l'aide de Pip - Stack Overflow


Sorry for asking this kind of question, however i wasn't able to find the right answer online foe more than 5 hours. Why do they call this thing "easy" install i do not know.


I am trying to install this one: https://pypi.python.org/pypi/textblob-aptagger and it says to use this code - but I do not know where to use it (command line and python console do not work):


$ pip install -U textblob-aptagger

I installed easy install and pip using exe files from http://www.lfd.uci.edu/~gohlke/pythonlibs/


So when I use the command


$ pip install -U textblob-aptagger


in python console i get this error:


  File "<console>", line 1
$ pip install -U textblob-aptagger
^
SyntaxError: invalid syntax

Where should i use this installation command?




You run the executable from the command line, but since it's not in your PATH, you'll need to supply the full filepath. On my system pip is installed at C:\Python27\Scripts, so the command I would use to install textblob-aptagger would be C:\Python27\Scripts\pip.exe install -U textblob-aptagger. Yours will likely be located in a similar if not identical location.



Sorry for asking this kind of question, however i wasn't able to find the right answer online foe more than 5 hours. Why do they call this thing "easy" install i do not know.


I am trying to install this one: https://pypi.python.org/pypi/textblob-aptagger and it says to use this code - but I do not know where to use it (command line and python console do not work):


$ pip install -U textblob-aptagger

I installed easy install and pip using exe files from http://www.lfd.uci.edu/~gohlke/pythonlibs/


So when I use the command


$ pip install -U textblob-aptagger


in python console i get this error:


  File "<console>", line 1
$ pip install -U textblob-aptagger
^
SyntaxError: invalid syntax

Where should i use this installation command?



You run the executable from the command line, but since it's not in your PATH, you'll need to supply the full filepath. On my system pip is installed at C:\Python27\Scripts, so the command I would use to install textblob-aptagger would be C:\Python27\Scripts\pip.exe install -U textblob-aptagger. Yours will likely be located in a similar if not identical location.


0 commentaires:

Enregistrer un commentaire