--------------------------------------------------------------------------- ModuleNotFoundError Traceback (most recent call last) <ipython-input-7-d3aeb28694f5> in <module>() ----> 1 from vpython import * 2 box() ModuleNotFoundError: No module named 'vpython'
and of course there's no following imports
At least I can find the VPython kernel .
It seems the vpython wasn't installed properly. What's the proper installation of it?
Your help would be greatly appreciated!!
--
You received this message because you are subscribed to the Google Groups "VPython-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vpython-user...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Feb 22, 2017, at 1:09 PM, rnlf...@gmail.com wrote:
I was running this program in Jupiter Notebook
--------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) <ipython-input-1-db688cfe291d> in <module>() ----> 1 from vpython import * /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/vpython/__init__.py in <module>() 8 # Keep this import last to ensure that __version__ and __gs_version__ exist 9 # before importing vpython, which itself imports both of those. ---> 10 from .vpython import * /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/vpython/vpython.py in <module>() 56 # Clean out of nbextensions old vpython files (now in nbextensions/vpython_libraries) 57 nbdir = jupyter_data_dir()+'/nbextensions/' ---> 58 nb = os.listdir(nbdir) 59 deletions = ['glow.2.1.min.js', 'glowcomm.js'] 60 for f in nb: FileNotFoundError: [Errno 2] No such file or directory: '/Users/dacoon/Library/Jupyter/nbextensions/'
Just released: Jupyter VPython 2.0.2, which fixes this problem. The problem showed up only if vpython had never been installed before.Bruce
· In a Power Shell or Command Prompt (Windows) or Terminal (Mac /
Linux) run this command, which will install VPython 7 for Python 2.7, 3.4, 3.5, or 3.6:
pip
install vpython
Or if using Anaconda, conda install -c vpython vpython
There will be frequent updates to this module. You can get the latest version this way:
pip
install vpython --upgrade
Or if using Anaconda, conda update -c vpython vpython
th
wh