Ask Your Question
0

Make PyCharm recognise the Sage python interpreter (where to find Sage Python executable)

asked 2024-12-12 18:32:24 +0100

updated 2024-12-12 19:28:57 +0100

Max Alekseyev gravatar image

I am using Sage through WSL. I would like PyCharm to recognize my Sage Python interpreter. I was trying to follow the steps in the answer under the question by the name "Make PyCharm recognise the Sage python interpreter". One of the steps is that I have to browse to the python2.7.exe executable under C:\Program Files\SageMath 8.1\runtime\opt\sagemath-8.1\local\bin, but I don't have a SageMath folder under Program Files. I would expect the python executable to be somewhere in \\wsl.localhost\Ubuntu, but I can't find it there. Would someone know where this executable can be found given that I use WSL?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2024-12-13 09:12:52 +0100

FrédéricC gravatar image

maybe sage -sh then which python ? On Ubuntu, this tells you the place.

edit flag offensive delete link more

Comments

Thank you, that worked!

ShaVuklia gravatar imageShaVuklia ( 2024-12-13 13:53:07 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2024-12-12 18:32:24 +0100

Seen: 110 times

Last updated: Dec 12 '24