On 12/22/2014 10:40 PM, Ramprasad G wrote:
You are right Adrian. My Spyder, Python34, Anaconda is in C:\ whereas
the script is in E:\ (& I thought we could have our scripts stored
anywhere, right?). E:\ is a local drive. I got it working when I
copy-pasted the package-folders from C:\Python34\Lib\site-packages to
C:\Users\ramprasad.g\AppData\Local\Continuum\Anaconda3\Lib\site-packages.

Well you can store your scripts anywhere, run from anywhere is another question?:) Spyder was running your script, it was just that the script could not find splinter. It looks to me like splinter was in the system PATH but not the Anaconda path. I do not use Anaconda, but from the Anaconda page:

"Installs into a single directory and doesn't affect other Python installations on your system. Doesn't require root or local administrator privileges"

Seems Anaconda isolates itself from the system Python, which would explain the behavior you are seeing.


Perhaps, I should be going into Anaconda's site-packages folder in my
command prompt before using the pip command to install packages. But I
thought that directories that are specified in Python Path Manager of
Spyder are looked up while running the code. A bit of a let down there...

Yes, I would say you need to pip install splinter in your Anaconda environment. From what I gather the point of Anaconda is to be an isolated environment that does not interact with the system Python environment, so I would say the results are as expected. Others my be enlighten on this. In any case you would seem to have two choices, run inside Anaconda or download the stand alone Spyder binary for Windows and run it against your system Python:

https://bitbucket.org/spyder-ide/spyderlib/downloads




--
Adrian Klaver
[email protected]

--
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.

Reply via email to