0

I have installed the LinkedIn using pip. However, when I'm calling for an import it acts as if it is not there, it doesn't recognize it as a module.

What could I be doing that is wrong?

In [59]: !pip install LinkedIn
Requirement already satisfied (use --upgrade to upgrade): LinkedIn in c:\users\o
wner\anaconda\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): httplib2 in c:\users\o
wner\anaconda\lib\site-packages (from LinkedIn)
Requirement already satisfied (use --upgrade to upgrade): oauth2 in c:\users\own
er\anaconda\lib\site-packages (from LinkedIn)
Requirement already satisfied (use --upgrade to upgrade): simplejson in c:\users
\owner\anaconda\lib\site-packages (from LinkedIn)
Cleaning up...

In [60]: from LinkedIn import LinkedIn
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-60-9e394099ee12> in <module>()
----> 1 from LinkedIn import LinkedIn

ImportError: No module named LinkedIn
1
  • Is it from linkedin import LinkedIn? Module names are generally lowercase. Commented Feb 25, 2014 at 20:15

2 Answers 2

4

According to the Github repo, the module is in lowercase. Also, there's no LinkedIn class/variable in the module. I think you want the API:

from linkedin import LinkedinAPI
Sign up to request clarification or add additional context in comments.

Comments

0

The problem is the lack of values in the system variables: After pip install, you can append the repository of the package "linkedin" installed in the "Path" system variable, which is, in my case, C:\Python34\Lib\site-packages

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.