Well crap! I just followed the official Fedora documentation, although I suppose it's pretty old, but I thought pip would take care of the dependencies. I'm just afraid of uninstalling everything now in case I mess up Python on my system. Should I just run
*sudo pip uninstall spyder * and then also *sudo rm -r **/usr/local/lib/python3.10* or would that also remove other things it should not? And also, since it somehow works, is it not okay to just leave it as is, or is it bound to have problems? Thanks for the reply. On Monday, January 24, 2022 at 12:07:43 AM UTC+1 [email protected] wrote: > Hi, > > Unfortunately, you're installing Spyder the wrong way by running > > sudo pip install spyder > > That mixes packages from PyPI with the ones provided by Fedora, which are > compiled differently and usually are incompatible among themselves (it > doesn't matter that in your other laptop you were lucky and didn't have any > errors). > > So, please remove all packages you installed with pip (not only Spyder, > but each one), and if possible, all files and directories under > > /usr/local/lib/python3.10 > > Instead, please create a virtualenv (there are multiple methods to do > that, so you need to google for it) and install Spyder on it. > > Also, as a cautionary note, Spyder is not ready for Python 3.10 yet (it > has some minor bugs that will be fixed in our next version), so you need to > use a Python 3.9 virtualenv for it. > > > Cheers, > Carlos > > El 23/01/22 a las 10:32 a. m., Krysztof escribió: > > Hello everyone, > > I'm new to all this, I have used Spyder in the past and I'm trying to > install it again on Fedora now. I find Anaconda a bit confusing, so I'm > trying to install it via pip but it gives me an error when running it. The > error is this > > File "/usr/local/bin/spyder", line 8, in <module> sys.exit(main()) File > "/usr/local/lib/python3.10/site-packages/spyder/app/start.py", line 232, in > main from spyder.app import mainwindow File > "/usr/local/lib/python3.10/site-packages/spyder/app/mainwindow.py", line > 41, in <module> requirements.check_qt() File > "/usr/local/lib/python3.10/site-packages/spyder/requirements.py", line 47, > in check_qt if parse_version(actual_ver) < parse_version(required_ver): > File "/usr/lib/python3.10/site-packages/pkg_resources/*init*.py", line > 114, in parse_version return packaging.version.Version(v) File > "/usr/lib/python3.10/site-packages/pkg_resources/_vendor/packaging/version.py", > > line 275, in *init* match = self._regex.search(version) TypeError: > expected string or bytes-like object > > Any idea what this is? On another laptop running Fedora with everything > updated, I just ran sudo pip install spyder and it works fine, latest > version too. What might be wrong? Sorry if this is too noobish a question > and thanks in advance. > > -- > You received this message because you are subscribed to the Google Groups > "spyder" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/spyderlib/032796d4-8f53-4d8e-94dc-3129b0398a38n%40googlegroups.com > > <https://groups.google.com/d/msgid/spyderlib/032796d4-8f53-4d8e-94dc-3129b0398a38n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/a066b1ce-e3ae-46ec-b068-e0fcc444f117n%40googlegroups.com.
