"import random" Odd Behavior on OSX install VPython v.3.1
Eric Dick <[email protected]>
| Newsgroups | gmane.comp.python.visualpython.user |
|---|---|
| Message-ID | <[email protected]> |
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! ------------------------------------------------------------------------------ vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-d2dcopy1 _______________________________________________ Visualpython-users mailing list Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/visualpython-users