Reputation: 295
Hi I am completely new to Python, and I would like to install Python-LinkedIn in order to extract data from the LinkedIn API.
I have installed the files into the same directory as all my other packages (including pip
). I'm not sure if this is how to do it.
Whenever I type:
pip install python-linkedin
it returns
SyntaxError: invalid syntax
Whenever I type:
pip install git+https://github.com/ozgur/python-linkedin.git
or
pip clone git+https://github.com/ozgur/python-linkedin.git
it returns
SyntaxError: invalid syntax
Help please, I just need to know how to get started, thank you.
Upvotes: 1
Views: 2820
Reputation: 2660
given that you are in windows (which it would seem like)
open command prompt and type
[path to your python_folder]\scripts\pip.exe install [package name]
for example if your python is installed in C:\ and you are using 2.7.
C:\Python27\Scripts\pip.exe install Python-LinkedIn
(or pip[versionumber].exe
)
Upvotes: 1
Reputation: 14369
The most common way to install python modules is PyPy. See the page of the module at https://pypi.python.org/pypi/python-linkedin . It includes installation instructions.
$ pip install python-linkedin
Upvotes: 0
Reputation: 1143
So like jonrsharpe mentioned before you are trying to install it from within python interpreter and you should do it from command line instead. Under Windows just press window key on keyboard, type cmd and press enter and then type that (of course it works if python is added to path, if not, navigate to its scripts folder):
pip install python-linkedin
On OS X, open your Applications folder, then open the Utilities folder. Open the Terminal application.
I hope this will be helpful. Have fun.
Upvotes: 1