【问题标题】:ModuleNotFoundError: No module named 'requests' error with tkdesignerModuleNotFoundError:tkdesigner 没有名为 \'requests\' 的模块错误
【发布时间】:2022-12-21 04:29:36
【问题描述】:

尝试使用 tkinter 设计器以及当我运行它时

cd Tkinter-Designer
cd gui
python3 gui.py

我收到这个错误

Traceback (most recent call last):
  File "C:\Users\Brodie\Tkinter-Designer\gui\gui.py", line 12, in <module>
    from tkdesigner.designer import Designer
  File "C:\Users\Brodie\Tkinter-Designer\tkdesigner\designer.py", line 1, in <module>
    import tkdesigner.figma.endpoints as endpoints
  File "C:\Users\Brodie\Tkinter-Designer\tkdesigner\figma\endpoints.py", line 3, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Brodie\Tkinter-Designer\gui\gui.py", line 14, in <module>
    raise RuntimeError("Couldn't add tkdesigner to the PATH.")
RuntimeError: Couldn't add tkdesigner to the PATH.

我有 pip 安装请求和 pip3 安装请求,没有区别

【问题讨论】:

    标签: tkinter path request figma


    【解决方案1】:

    尝试运行使用

    python gui.py
    

    这对我有用

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-08-01
      • 2020-02-12
      • 2021-07-08
      • 2017-12-26
      • 2019-01-17
      • 2014-12-25
      • 2018-04-29
      相关资源
      最近更新 更多