Giter VIP home page Giter VIP logo

Comments (10)

zhiyiYo avatar zhiyiYo commented on May 18, 2024

这个还是scipy的导入问题,安装的是full版本吗?不然 lite 版本应该不会用到scipy的

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

建议搭个虚拟环境测试一下,应该不会有问题的

from pyqt-fluent-widgets.

Ephemeralwanning avatar Ephemeralwanning commented on May 18, 2024

这个还是scipy的导入问题,安装的是full版本吗?不然 lite 版本应该不会用到scipy的

这样吗 我以为我scipy安装成功后就能直接用full版本了呢

我刚刚重新用了lite版部分demo就能运行成功了

但是好像所有带resource文件夹的demo都无法运行

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

可能是你的运行路径有问题,你有切换到 demo.py 所在目录运行吗?

from pyqt-fluent-widgets.

Ephemeralwanning avatar Ephemeralwanning commented on May 18, 2024

可能是你的运行路径有问题,你有切换到 demo.py 所在目录运行吗?

我是vscode打开目录 点击 demo 直接运行

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

如果你是用的 python 插件提供的运行按钮,他不会切换到 demo.py 所在目录的,建议安装一个 code runner 插件,然后按住 ctrl+alt+n 运行 demo.py

from pyqt-fluent-widgets.

Ephemeralwanning avatar Ephemeralwanning commented on May 18, 2024

如果你是用的 python 插件提供的运行按钮,他不会切换到 demo.py 所在目录的,建议安装一个 code runner 插件,然后按住 ctrl+alt+n 运行 demo.py

试了一下 好像resource里带qss的都无法运行

QQ截图20230130215141

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

请在 .vscode/settings.json 中填入下述配置:

{
    "code-runner.executorMap": {
        "python": "cd $dir && python $fileName",
    }
}

image
我图片里面用的是虚拟环境 PyQt-Fluent-Widgets 的 python.exe 路径,你可以换成你自己的 python.exe 路径

from pyqt-fluent-widgets.

Ephemeralwanning avatar Ephemeralwanning commented on May 18, 2024

请在 .vscode/settings.json 中填入下述配置:

{
    "code-runner.executorMap": {
        "python": "cd $dir && python $fileName",
    }
}

image 我图片里面用的是虚拟环境 PyQt-Fluent-Widgets 的 python.exe 路径,你可以换成你自己的 python.exe 路径

哇 可以运行了非常感谢您的解答

from pyqt-fluent-widgets.

zhiyiYo avatar zhiyiYo commented on May 18, 2024

有其他问题欢迎提新 issue 🙂

from pyqt-fluent-widgets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.