Python Jupyter笔记本中的Vpyton(FileNotFoundError:[WinError 3]系统找不到指定的路径:)
我试图将Vpyton与Jupyter笔记本一起使用,但对我目前的情况感到困惑,我已经使用命令行pip install Vpyton通过pip安装了Vpyton 为了确保它正常工作,我还尝试用我编写的这些简单代码行制作一个基本的Vpython脚本 它与我的main.py文件一起工作,但当我尝试将其传输到jupyter笔记本时,它出现了一些错误Python Jupyter笔记本中的Vpyton(FileNotFoundError:[WinError 3]系统找不到指定的路径:),python,jupyter-notebook,Python,Jupyter Notebook,我试图将Vpyton与Jupyter笔记本一起使用,但对我目前的情况感到困惑,我已经使用命令行pip install Vpyton通过pip安装了Vpyton 为了确保它正常工作,我还尝试用我编写的这些简单代码行制作一个基本的Vpython脚本 它与我的main.py文件一起工作,但当我尝试将其传输到jupyter笔记本时,它出现了一些错误 FileNotFoundError Traceback (most recent call last) &l
FileNotFoundError Traceback (most recent call last)
<ipython-input-2-b919c6b7ad5b> in <module>
----> 1 sphere()
C:\Python39\lib\site-packages\vpython\vpython.py in __init__(self, **args)
1103 args['_default_size'] = vector(2,2,2)
1104 args['_objName'] = "sphere"
-> 1105 super(sphere, self).setup(args)
1106
1107 @property
C:\Python39\lib\site-packages\vpython\vpython.py in setup(self, args)
577
578 def setup(self, args):
--> 579 super(standardAttributes, self).__init__()
580 self._constructing = True ## calls to setters are from constructor
581
C:\Python39\lib\site-packages\vpython\vpython.py in __init__(self, **kwargs)
232 baseObj._canvas_constructing):
233 if _isnotebook:
--> 234 from .with_notebook import _
235 else:
236 from .no_notebook import _
C:\Python39\lib\site-packages\vpython\with_notebook.py in <module>
69
70
---> 71 if 'nbextensions' in os.listdir(jd):
72 ldir = os.listdir(nbdir)
73 if ('vpython_data' in ldir and len(os.listdir(nbdata)) == datacnt and
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\INTEL\\AppData\\Roaming\\jupyter'
FileNotFoundError回溯(最近一次调用)
在里面
---->1球体()
C:\Python39\lib\site packages\vpython\vpython.py在_uinit__;中(self,**参数)
1103参数[''默认大小']=向量(2,2,2)
1104参数[''对象名称]=“球体”
->1105超级(球体,自)。设置(args)
1106
1107@property
安装程序中的C:\Python39\lib\site packages\vpython\vpython.py(self,args)
577
578 def设置(自身,参数):
-->579超级(标准属性,自我)。\uuuu初始化
580 self._constructing=True##对setter的调用来自构造函数
581
C:\Python39\lib\site packages\vpython\vpython.py在_uinit__;中(self,**kwargs)
232 baseObj.\u画布\u构造):
233如果有笔记本:
-->234从。随_笔记本导入_
235其他:
236来自。无需导入笔记本_
C:\Python39\lib\site packages\vpython\with\u notebook.py in
69
70
--->71如果os.listdir(jd)中的“nExtensions”:
72 ldir=os.listdir(nbdir)
73如果ldir和len中的('vpython_data')(os.listdir(nbdata))==datacnt和
FileNotFoundError:[WinError 3]系统找不到指定的路径:“C:\\Users\\INTEL\\AppData\\Roaming\\jupyter”
问题出在哪里?我该如何解决?请帮助我
FileNotFoundError Traceback (most recent call last)
<ipython-input-2-b919c6b7ad5b> in <module>
----> 1 sphere()
C:\Python39\lib\site-packages\vpython\vpython.py in __init__(self, **args)
1103 args['_default_size'] = vector(2,2,2)
1104 args['_objName'] = "sphere"
-> 1105 super(sphere, self).setup(args)
1106
1107 @property
C:\Python39\lib\site-packages\vpython\vpython.py in setup(self, args)
577
578 def setup(self, args):
--> 579 super(standardAttributes, self).__init__()
580 self._constructing = True ## calls to setters are from constructor
581
C:\Python39\lib\site-packages\vpython\vpython.py in __init__(self, **kwargs)
232 baseObj._canvas_constructing):
233 if _isnotebook:
--> 234 from .with_notebook import _
235 else:
236 from .no_notebook import _
C:\Python39\lib\site-packages\vpython\with_notebook.py in <module>
69
70
---> 71 if 'nbextensions' in os.listdir(jd):
72 ldir = os.listdir(nbdir)
73 if ('vpython_data' in ldir and len(os.listdir(nbdata)) == datacnt and
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\INTEL\\AppData\\Roaming\\jupyter'