![]() ![]() CTk() # create CTk window like you do with the Tk window app. set_default_color_theme( "blue") # Themes: blue (default), dark-blue, green app = customtkinter. set_appearance_mode( "System") # Modes: system (default), light, dark customtkinter. bashrc file:Ģ.Import customtkinter customtkinter. ![]() To edit, or commented out, the Anaconda Path, in the. Label(text=c, relief=RIDGE, width=15).grid(row=i, column=col)Īs you can image, there’s a lot of room to grow for integrating technologies such as PowerShell and Python. # – list to screen list of data and will get number of rows in the list: Tsql = ‘SELECT Name, Location, Hire, HireDate FROM ’ĭatarow = ),str(row),str(row),str(row)] Then, to test this package was loaded, open *python and type:Ĭnxn = nnect(‘DRIVER= SERVER=MTRINIDADLT2,1738 DATABASE=master UID=sa PWD=$Adm1n!’) I did install PYODBC in both Windows and Linux, run the following command at the console: Additional Package for SQL Serverĭuring the Anaconda installation, you’ll notice that it will load lots of python packages for data science and including “tk” which provide the ability to create GUI applications.īut, there’s one package missing, “ pyodbc” will be needed in order to create python scripts to connect with SQL Server. It would be a bad routine, when using the “ update-alternatives” command, to change back to the default version as all running scripts during the system updates will need run on Python 2.7. Remember, in Ubuntu Linux, the system default version of Python is 2.7. # update-alternatives –remove python /usr/bin/python3.5 #-> You can use the –remove parameter to get rid of any lines added: #-> To change Python version, then select which version # update-alternatives –install /usr/bin/python python /home/Username/anaconda3/bin/python3.6 2 # update-alternatives –install /usr/bin/python python /usr/bin/python3.5 1 # update-alternatives –install /usr/bin/python python /usr/bin/python2.7 5 # update-alternatives –list python # will not display python #-> Install python for ‘update-alternatives’ command use: This command need to be executed under super-user privilege “ sudo su“.īelow is the series of commands use with “ update-alternatives“: You could also setup the “ update alternatives” command to swapt between the different versions of Python. Using “update-alternatives” Linux Command *Note: These steps can be applied to WSL Windows 10 Bash. Try the following commands to open other versions of python previously installed in Ubuntu: python3.5, python2, or python2.7. If you want to use any previous version, then you’ll need to manually type the PythonX.x executable. Finally, to activate Anaconda, type the following command: Add the Anacona path to user profile in the “.bashrc” file by answering “Yes” and this will force to open Python on version 3.6.Ħ. Then, you can select the location where Anaconda will be installed. Enter “Yes” to Accept the license agreement.Ħ. The “curl” command for the latest version available:Ĥ. Change directory to where you want to store the installation file:Ģ. First, verify which is the latest version available by going to the following link: ġ. There are few more steps to complete the installation on *Linux. So, you may need to manually revert back to use older version. * Note: Installing Anaconda (Python 3.6) will redirect any previous version of Python to version 3.6. During the SQL Server installation process, select the “Machine Learning Services (In-Database)” option and this will automatically install both “R” and *”Anaconda” on your system. In Windows the installation is simply done through the SQL Server 2017 setup process. Python 3.6), we need to know what it takes to successfully install Anaconda on your developer system(s) both Windows and Linux. Now, since the release of SQL Server 2017 and the integration of Anaconda (ie. On my previous blog “ PowerShell – Working with Python and SQL Server“, I show how to install Python 3.5 so we can be build python scripts to connecting to SQL Server and use them with PowerShell. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |