0

I reinstalled spyder on my system (Ubuntu) to update it to the 5.1.5 version; I did it following the solution of this post: Spyder 5.1.5 update Now I have to set the python path. I don't want to create a new environment but just access to all conda python library. The output of these commands

conda activate
which python

is:

/home/emanuele/anaconda3/bin/python

On the other hand, when I open spyder and goes to Tool -> PYTHONPATH manager, I'm not able to find this path: inside the bin there is no the python folder as expectedenter image description here

What am I missing? Any idea of how to solve it?

user1172131
  • 103
  • 7
  • Note that PYTHONPATH does not deal with which Python executable is used. That is what PATH is for. – 9769953 Nov 14 '21 at 10:24
  • 1
    You're not seeing anything, because the filter of the file picker is set to "directories". It expects a directory for PYTHONPATH; *not* the Python executable. The Spyder setting for the Python executable is probably somewhere else. – 9769953 Nov 14 '21 at 10:26
  • Thank you for your comment; so what is the right way to identify the path to use in the PYTHONPATH manager? – user1172131 Nov 14 '21 at 10:27
  • https://docs.spyder-ide.org/current/faq.html#using-existing-environment – 9769953 Nov 14 '21 at 10:30
  • I'm not so practical, is there a guide that explain how to configure spyder properly? For example in the above link is not clear to me which path I should select; I don't have/want to create a new env; just want to link spyder with the standard anaconda's collections of python's libraries – user1172131 Nov 14 '21 at 10:34
  • 1
    You select `/home/emanuele/anaconda3/bin/python` there. Yes, the manual calls it "environment", but that's just to confuse you. – 9769953 Nov 14 '21 at 10:59
  • Thank you! I realized that interpreter was well set (in the post's picture, lower right part is reported conda:base (Python 3.8.12)) and that I simply lost some library as matplotlib; once I pip installed them again all seems to works fine – user1172131 Nov 14 '21 at 11:05
  • To be honest: it is a bit weird that you install Conda, but then don't use the environment(s) *and* pip-install e.g. matplotlib. In that case, you could have simply installed a recent Python version, without the Conda stuff. – 9769953 Nov 14 '21 at 16:59

0 Answers0