Closed eafpres closed 1 year ago
I should add, than when I run spyder, I get: eafpres@EAFLLCML:~$ spyder libpng warning: bKGD: invalid libpng warning: bKGD: invalid
Also, even when just using the default interpreter, it takes a really long time for spyder to connect to the kernel and become active
Update--I was able to "solve" this by:
$python3.9 -m pip install spyder
I still get the: libpng warning: bKGD: invalid libpng warning: bKGD: invalid
on startup
If I put /usr/bin/Python3.9 in the IPython interpreter field in Spyder Preferences, I get things like this:
That shows that you're mixing system packages (i.e. those provided by your Linux distro) with others installed with pip, which is a bad practice given that the two sets are incompatible.
So, I'd recommend you to remove /home/eafpress/.local/lib/python3.9
(and /home/eafpress/.local/lib/python3.8
, if you have it as well) and use virtualenvs instead (as described in our documentation). That's a much better way to work because you'll still be able to use your system Python (as it seems that you want to) but in a completely isolated environment (i.e. you'll have to install everything with pip, instead of mixing pip and system packages).
Update--I was able to "solve" this
Ok, that's good to know.
I still get the: libpng warning: bKGD: invalid libpng warning: bKGD: invalid
on startup
That's just a warning, so you can safely ignore it.
I'm going to close this issue since there's no much else we can do about it.
Problem Description
I have Ubuntu 20.04 in WSL2 under Windows 11 Pro. I have installed both Python3.8 and Python3.9. Typically I use update-alternatives to set the default Python version. I am trying to run Spyder and use Python3.9. Although Python3.9 is configured as the default, Spyder launches with Python3.8. I have tried to change the Python Interpreter path to my Python3.9 directory, but then I get a series of dependency missing issues when it tries to connect to the kernel, and I cannot use it. Running Spyder from the Linux terminal works fine, but it is in Python3.8.
If I use which Python3.9 in Linux, it shows /usr/bin/python3.9; likewise if I use which Python3.8, it shows /usr/bin/Python3.8.
If I put /usr/bin/Python3.9 in the IPython interpreter field in Spyder Preferences, I get things like this:
Note that I would rather it just used Python3.9. On previous installs on other machines this was not a problem. I'm unclear why this is happening in this instance.
What steps reproduce the problem?
In Ubuntu 20.04:
spyder
Tools > Preferences > Python interpreter > use the following Python interpreter: /usr/bin/python3.9 OK
File > Quit
spyder
Note that in both cases above, it shows Python 3.9.16 in the lower bar, but is using 3.8.10 in the console
What is the expected output? What do you see instead?
Either (A) run spyder and it uses Python3.9, or (B) not get dependency errors trying to set the interpreter via Preferences
Paste Traceback/Error Below (if applicable)
Versions
Python 3.8.10 64-bit Qt 5.12.8 PyQt5 5.14.1 Linux 5.15.90.1-microsoft-standard-WSL2
Dependencies
As a final note, by the way, the debian installer installs a 3.x version of Spyder...