Replies: 1 comment
-
有可能是中文路径,但不一定是唯一的原因 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
D:\Git\chatgpt_academic>python main.py
Traceback (most recent call last):
File "C:\Users\苏格拉底式杠精\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\IPython\utils\timing.py", line 28, in
import resource
ModuleNotFoundError: No module named 'resource'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Git\chatgpt_academic\main.py", line 206, in
main()
File "D:\Git\chatgpt_academic\main.py", line 4, in main
import gradio as gr
File "C:\Users\苏格拉底式杠精\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\gradio_init_.py", line 68, in
from gradio.ipython_ext import load_ipython_extension
File "C:\Users\苏格拉底式杠精\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\gradio\ipython_ext.py", line 2, in
from IPython.core.magic import needs_local_scope, register_cell_magic
File "C:\Users\苏格拉底式杠精\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\IPython_init_.py", line 49, in
from .terminal.embed import embed
File "C:\Users\苏格拉底式杠精\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\IPython\terminal\embed.py", line 19, in
from IPython.terminal.ipapp import load_default_config
File "C:\Users\苏格拉底式杠精\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\IPython\terminal\ipapp.py", line 45, in
from IPython.core.magics import ScriptMagics
File "C:\Users\苏格拉底式杠精\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\IPython\core\magics_init_.py", line 22, in
from .execution import ExecutionMagics
File "C:\Users\苏格拉底式杠精\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\IPython\core\magics\execution.py", line 45, in
from IPython.utils.timing import clock, clock2
File "C:\Users\苏格拉底式杠精\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\IPython\utils\timing.py", line 65, in
clocku = clocks = clock = time.clock
AttributeError: module 'time' has no attribute 'clock'
Beta Was this translation helpful? Give feedback.
All reactions