简体   繁体   中英

running vpython in a virtual environment

I am running python 3.9.9 in vs code and Windows 10. When I run vpython in a standard(global) program my browser opens and the picture appears. When I run vpython in a virtual environment the browser opens but there is no picture, just a white screen and I do not get error messages. Sample code:

from vpython import * myBox = box(length=2,width=1,height=2, color=color.red) while True: pass

You should first try restarting your computer, the same thing happened to me before, if that still doesn't work, maybe try reinstalling Visual Studio Code or VPython

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM