![]() ![]() The sample code works with Python 2.7 and Python 3.x. The following sample Python code demonstrates how to do this, as well as just how easy it is to switch between the different SQL ![]() To install the pymysql package, type the following command:Īfter you install a MySQL package in the virtual environment, you are ready to work with actual databases. To activate the virtual environment, type the following command: ForĮxample, to install a user-configured version of Python 3.8 in the virtual environment, you could use the following command: virtualenv -p /home/ username/bin/python3.8 sqlenv ![]() If you are running an alternate Python version (for example, you manually configured a newer Python version for your account as described in this article), you can specify that version for the virtual environment.You can use any environment name you want, but make sure you replace all occurrences of sqlenv with your own environment name. The virtualenv command creates a virtual environment named sqlenv, and subsequent commands in this procedure assume that the environment is.To create a virtual environment, type the following commands: cd ~.Python virtual environment and install a MySQL package, follow these steps: Setting up the Python virtual environment and installing a MySQL package This means that if you switch from one module to another, you can reuse almost all of your existing code (the code sample below demonstrates how to do this). It is written entirely inĪll three of these packages use Python's portable SQL database API. PyMySQL: This package contains the pymysql module.mysql-connector-python: This package contains the nnector module.It is written in C, and is one of the most commonly used Python packages for MySQL. mysqlclient: This package contains the MySQLdb module.Fixed the sidebar scroll issue when using the fixed layout.Full support for Glyphicons, Fontawesome and Ion icons.LESS has been used to increase code customizability. Visit for more information.ĪdminLTE has been carefully coded with clear comments in all of its JS, LESS and HTML files. Hand picked to insure the best quality and the most affordable prices. Note: If the javascript in the preview does not work properly (specially IE users), please visit (this could be because of the use of an iframe!) Want More?Īlmsaeed studio just opened a new premium templates page. Check out the live preview now and see for yourself. ![]() Fits many screen resolutions from small mobile devices to large desktops. AdminLTE - is a fully responsive admin template. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |