Pyside6 wont detect in code 关注
Translator
Translator
I'm currently running my install on Linux Mint, idk if that'll complicate things, but any time I'm trying to use any Qt functions, or pyside, it will prompt me to install the package, it says it's successful, then proceeds to actually not work, or even act any different. I used pip to install pyside in my bash terminal, and that looked fine when I did it, and this is the CE package from my stock package manager. If i need to use a snap package, i guess i will, but I'd also prefer to learn what's wrong with this setup if that's what it comes to.
请先登录再写评论。
It sounds like there may be an issue with the installation of the Qt or pyside packages on your Linux Mint system. Here are a few things you can try to troubleshoot the issue:
Make sure you are installing the correct packages for your system. Depending on your version of Linux Mint and your Python version, you may need to install different versions of Qt and pyside. Check the documentation for the packages you are installing to make sure they are compatible with your system.
Try installing the packages using your system's package manager instead of pip. This can help ensure that all dependencies are installed correctly and that the packages are properly integrated with your system.
Check the installation logs for any errors or warnings. These can often provide clues as to why the packages are not working correctly.
Try running your code with elevated privileges (i.e. as root or using sudo). Sometimes, there may be permission issues that prevent the packages from working correctly.
Consider using a virtual environment to isolate your Python environment from your system environment. This can help prevent conflicts between different packages and dependencies.
If none of these steps work, it may be worth trying to install the packages using a different method, such as using a snap package or compiling from source. However, it's generally best to try to fix the issue with your current installation first, as this can help prevent similar issues in the future.
If it doesn't work, make sure the package is installed from the terminal -- `python -m pip list`, and then try importing it there `python -c "import PySide6"`. Maybe you just installed it for a wrong interpreter.