On 03/31/2015 06:18 AM, west h wrote:
> Hello All,
>
> I'm trying to install new modules to spyder 2.3.1 on my macbook (yosemite).
> The module i am trying to install is oauth2. I used the easy-install in
> the terminal window.
> sudo python setup.py install. It installed just fine. I was getting this
> error when running the code.
>
> ImportError: No module named oauth2
>
> when on google someone was saying to copy the folder into the spyder lib
> So i copy the oauth2 folder from the unzip folder and put into the lib
> folder in spyder
>
> But i get a new error
>
> ImportError: No module named httplib2
>
> The new error - Import httplib2 is an import that oauth2 is using.
> Did I do this all wrong?
The installs where done to the system site-packages directory and Spyder
is not finding them.
What is the right thing to do.
> I also saw online that some people talk about using "PYTHONPATH manger".
> But how do I use this? Do i add the path from the unzip folder?
The PYTHONPATH manager is found under the Tools menu item. Enter the
path to the system site-packages directory. The easiest way to find it
is to open the system Python interpreter and do:
import httplib2
help(httplib2)
At the top of the help will be the site-packages directory.
As an example:
aklaver@panda:~> python
Python 2.7.6 (default, Nov 21 2013, 15:55:38) [GCC] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import psycopg2
>>> help(psycopg2)
Help on package psycopg2:
NAME
psycopg2 - A Python driver for PostgreSQL
FILE
/usr/lib/python2.7/site-packages/psycopg2/__init__.py
> I am lost Please Help if you can.
I would suggest reading this several times:
https://docs.python.org/2/tutorial/modules.html
>
> Thanks
>
> --
> You received this message because you are subscribed to the Google
> Groups "spyder" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
spyderlib+...@googlegroups.com
> <mailto:
spyderlib+...@googlegroups.com>.
> To post to this group, send email to
spyd...@googlegroups.com
> <mailto:
spyd...@googlegroups.com>.
> Visit this group at
http://groups.google.com/group/spyderlib.
> For more options, visit
https://groups.google.com/d/optout.
--
Adrian Klaver
adrian...@aklaver.com