From: Eric D. <mon...@ma...> - 2011-05-24 19:28:35
|
Hello, I recently installed the VPython v.3.1 and corresponding Python versions for mac (OSX). I've been troubleshooting an old script of mine when I noticed some odd behavior. When I run my script, a line tries to import random. Oddly the shell reports that its using a file from numpy rather than from ~/python3.1/random.py. If I try to import random manually in the shell it grabs the correct module from ~/python3.1/random.py. A. Python Shell >>> import random >>> print (random.__file__) /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/random.py B. Script File >>> print (random.__file__) /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/numpy/random/__init__.py Does anyone know how to fix this? Also does anyone know what is going on? Please reply with complete instructions, as I am very very very new to all of this. Thank you all in advance! |