![]() ![]() If you see that your Thonny IDE does not have the menu bar, click on Switch to regular mode on the top right corner. Steps to associate a Python 3 virtual environment with Thonny Create a Python 3 virtual environment on Windows 10įor the purpose of this post, let's assume that we had created a Python 3 virtual environment at /home/pi/my-venv.Create a virtual environment with python3-venv on Linux or Unix.In case you need it, you can follow one of the following tutorials to create your Python 3 virtual environment: Now run the following command: python -version. Add the following code into your Thonny code editor: 1 from calculator.simple import SimpleCalculator 2 3 mycalculator SimpleCalculator() 4 n('2 2') 5 print(mycalculator.lcd) This code will print out the result of 2 2 to the Thonny Shell in the main UI. For example in Windows the full path is by default c:anacondapython.exe. Install it and find out where it puts the Python executable (python.exe in Windows and python3 or python in Linux and Mac). To install the Thonny Python IDE in your system, double-click on the downloaded file. Once the installation setup is downloaded successfully for Windows next step is the installation of the IDE. Subscribe 11K views 3 years ago Python Programming Course for Beginners In this video, I show you how to install the Thonny IDE for Python on a Windows machine. To check if your system already contains Python, go through the following instructions: Open the Command line (search for cmd in the Run dialog ( + R ). Note that Thonny supports only Python 3, so make sure you choose a Python 3 version of Anaconda. Click on ‘Windows’ to download the installation setup for Windows OS (as shown below). The steps to associate a Python 3 virtual environment with Thonny running on Windows should be similar.īefore proceeding further, make sure that you had created a virtual environment. To install OpenCV, one must have Python and PIP, preinstalled on their system. This tutorial was created with Thonny running on Raspbian Stretch. ![]() Creating a virtual environment with python3-venv Its well-designed and careful thought has been invested in the UI. With this in mind, this post shows you how to associate a Python 3 virtual environment with Thonny. Thonny is a wonderful, gentle introduction to using MicroPython on devices. When you are developing a Python 3 application with Thonny, you may want to get Thonny to use a virtual environment to run and debug your application. How to associate a Python 3 virtual environment with Thonny ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |