here.sudo Install nginx # installation NginxStart Nginx:[Email protected]:~$/etc/init.d/nginx start [email protected]:~$/etc/init.d/nginx stop[email protected] :Configure NginxNginx will read /etc/nginx/sites-enabled/default the configuration in the file by default:server { 8080 default_server; Listen [::]:8080 default_server; ...........Enter your Ubuntu IP to access, normal is 127.0.0.1:80If it does, the installation of Ngi
Ubuntu usually installs its own MySQL, you can only/etc/init.d/mysql start|stop|restart|reload|force-reload|status command to achieve MySQL start, stop restarting and so on.Of course, it is also possible to test whether Ubuntu has installed MySQL.At first I installed the MYSQLDB with Pip, but I did not pretend, then I installed sudo apt-get install python-mysqld
Label: Installation: Install PIP first, and update Pip to the minimum version Install python-pip
Install -u pip Installing the MySQL Development kit Install Python-dev Libmysqlclient-dev Install MySQL for Python with Pip Install Mysql-python Test, enter import mysqldb in the Python
Build a Python development environment in Ubuntu, using ubuntupython
It is easy to install Pycharm in Windows. The following describes how to install Pycharm In Ubuntu.
1. Update Python to 3.5.1 and execute the following command:
Sudo add-apt-repository ppa: fkrull/deadsnkessudo apt-get updatesudo apt-get install py
third line displays the TagList window in the right window.The line four automatically opens the TagList window after Vim is started.The five lines only show the current file tag, the other file's tag folding.The final configuration results are as follows :The contents of the configuration file are as follows: required to be replicable.Set tabstop=4Set Softtabstop=4Set Shiftwidth=4set Expandtabset autoindentset foldmethod=Indentlet Tlist_auto_highlight_tag=1Let tlist_auto_open=1Let tlist_auto_u
' , Target Else :Print ' Backup failed! '
Note that when you use the RAR a command to package files or folders, make sure that the environment variables have been configured, and the path also contains the installation path of RAR, control panel-system-advanced-environment variables-System Variables
2. Linux Ubuntu
#-*-Coding: cp936 -*-Import OSImport time# Specify the name and directory of the file to be backed up in the listSource = [R ' "
configure our Python on the Android operating environment, the application is sl4a. Enter https://code.google.com/p/android-scripting/Click QR Code to download, my is sl4a_r6.apk, then go to Downloads page:Apply the ADB tool to install the downloaded two files into your Android virtual appliance:Install those two apk files$ADB Install sl4a_r6.apk$ADB Install pythonforandroid_r4.apkOnce installed, go to your Android emulator and click on the app icon
1.windows 7:
Install python2.x or 3.x, programming languages have different places, need attention, the web is mostly 2.x tutorials.
After CMD, before running Python xxx.py, you need to set the environment variable, write the path name of the Python installation to the variable value, the variable name or path
I encountered the situation is in the Py file Direct shortcut key Fn+f5 Run, packaging failed,
1. Upgrade Python package management tool PIP
Pip Install--upgrade pip Note: ' Pip install--upgrade package name ' When you want to upgrade a package
2.python Virtual Environment Installation
sudo apt-get install Python-virtualenvsudo easy_install virtualenvwrapper
The mkvirtualenv command is not found when the above tool is installed,
Ubuntu Knowledge Supplement:Chown-r: The same permission changes are made to all files and subdirectories in the current directory (that is, to be changed one at a time in a recursive manner)Nohup command: If you are running a process and you feel that the process will not end when you exit the account, you can use the Nohup command. This command can continue to run the process after you exit the account/close the terminal. Nohup means not to hang (no
(Because on Ubuntu I installed python2.7 under the/usr/bin/Xwp_py2 is the name of my own virtual environment)Using the python2.7+django1.7.8 environment, you should install the following environments:(XWP_PY2) [Email protected]:~/workspace/itcast_project$ pip freeze list //Enter a virtual environment, this command is to see the configuration of the installation of the environment, if there is no such environment, then look down to the PIP ==8.1.0
Most Ubuntu system default Python versions are python2.x series, but the latest version is already 3.5 and 3.6, the software system follows the version always has a lot of benefits, so, the following is the author's experience in modifying the Ubantu default Python version:1, terminal input: Python-v View the default v
In this document I have documented the process of deploying the Flask Web site in Ubuntu, which includes user creation, code acquisition, installation of the PYTHON3 environment, virtual environment settings, Uwsgi startup program settings, and Nginx as the front-end reverse proxy. I hope to be of some help to you.Create a Python Web program dedicated account
123
AddUser haseovim/etc/su
myworkNote: If the current location is in a virtual environment, you need to exit the virtual environment before you can perform the deleteNote: You can perform a delete operation in any directory, and if you do not know the name, you can Rmvirtualen + two times tab to prompt all virtual environments
Exiting the virtual environment deactivate
Enter virtual environment Workon [virtual environment name]
Example: Workkon myworkNote: Pressing workon+ two times the TAB key prompts
1. Upgrade Python package management tool PIPPip Install--upgrade pip Note: ' Pip install--upgrade package name ' When you want to upgrade a package2.python Virtual Environment Installationsudo apt-get install Python-virtualenvsudo easy_install virtualenvwrapperThe mkvirtualenv command is not found when the above tool is installed, and the following environment v
Python 3.3.5 was released last month. Compared with the previous Python version, it solved some key problems. View the Update log for detailed release information of the revised version.
Recommended reading:
Python development technology details. (Zhou Wei, Zong Jie). [hd PDF scan version + book guide video + code]
Obtain Linux information using a
1. Upgrade Python package management tool PIPPip Install--upgrade pip Note: ' Pip install--upgrade package name ' When you want to upgrade a package2.python Virtual Environment Installationsudo apt-get install Python-virtualenvsudo easy_install virtualenvwrapperThe mkvirtualenv command is not found when the above tool is installed, and the following environment v
, Installation Virtualenv
$ sudo pip install virtualenv
3. Create an isolated environment
$ virtualenv Test
4. Activating the isolated environment
$ source Test/bin/activate
5, we can see that the command line has been added (test), this time we look at the path that Python points to:
$ which Python
6, install django1.5.1, do not add sudo
$ pi
Directory (?) [-]
Install Python release and build dependency packages
Installing Pip and Virtualenv
Configure personal use Virtualenv
Installing Git and Gitflow
Installing bash-it
Installing Sublime Text 2
Installing and configuring Vim
Ubuntu provides a good Python development environment, but if we want to maximize our dev
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.