So in review: I have installed Obspy through the installer, and I
believe everything installed correctly. If not, is there a test to
know if it installed correctly?
I guess its installed properly - you are just not used to virtual
I then use the Obspy Shell and attempt to write "From obspy import
read", but the following error arises:
<Obspy> C:\ProgramData\Microsoft\Windows\Start Menu\ Programs\
> from obspy import read 'from' is not recognized as an
internal or external command, operable program or batch file.
again its a shell not python! as I said before execute "python" here
and then import, e.g.
<Obspy> C:\YourPath\Obspy> python.exe
Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
from obspy import read
Environment variables should all be set properly so python.exe should
Firstly, the path to the Obspy folder above is incorrect. The
Obspy folder containing Include, Lib, Scripts, tcl, and uninstall
is actually at C:\Users\Edge 14 User\Obspy. Is that an issue?
thats exactly what I expect: Obspy folder within your home directory -
system path in the ObsPy shell will point to this folder
So, if Obspy installed correctly, what is the next step to properly
use this module in Python?
first check if you can import it now - after that you just call your
python scripts via
C:\Users\Edge 14 User\Obspy\Scripts\python.exe myscript.py
or if you prefer to work on shell - activate your virtual environment via
C:\Users\Edge 14 User\Obspy\Scripts\activate.bat
and run your programs like:
Dr. Robert Barsch
EGU Office Munich