In the options dialog, open the "Intepreter" tab, click "Select executable" and show the location of Anaconda's Python executable.Īfter you have done this, the next time you run your program, it will be run through Anaconda's Python and all the libraries installed there will be available. In Thonny, open the "Tools" menu and select "Options.". For example in Windows the full path is by default c:\anaconda\python.exe. Install it and find out where it puts the Python executable ( python.exe in Windows and python3 or python in Linux and Mac). Note that Thonny supports only Python 3, so make sure you choose a Python 3 version of Anaconda. Most likely you want the graphical installer and the 64-bit version (you may need a 32-bit version if you have a very old system). Go to and download a suitable binary distribution for your platform. numpy, pandas and matplotlib) have wheels available for popular platforms so you can most likely install them with pip but in case you have trouble, you could try using Thonny with a separate Python distribution meant for scientific computing (eg. Recent versions of most popular scientific Python packages (eg. The Python distribution that comes with Thonny doesn't contain scientific programming libraries (e.g. Reset the interpreter by selecting "Stop/Reset" from the "Run menu" (this is only required the first time you do the pip install).You should see pip downloading and installing the package and printing a success message. In the following I've assumed the command name is pip. You should get a new terminal window stating the correct name of the pip command (usually pip or pip3).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |