Pydiction can be we use the TAB key to automatically complement the Python code in Vim, is a very good plugin.Download pydictionmkdir ~/.VIMMKIDR ~/.VIM/TOOLSCD ~/.vim/tools# can be downloaded first and put into the Ubuntu system git clone https://github.com/rkulla/pydiction.gitConfigure Pydiction#-unix/linux/osx:put Python_pydiction.vim in ~/.vim/after/ftplugin/#-windows:put Python_pydiction.vim in C:\vim\
installed, you can create a new context:$ virtualenv FlaskappHere Virtualenv created a folder, flaskapp/, and set up a pure Python copy, with the guarantee manager PIP installed.Enter the newly created development environment and activate: (Note that there is a space between the second line period and the bin)CD Flaskapp$. Bin/activateThe next step is to safely install the flask:$ pip Install FlaskSet up the project structure.. |----app| | -------
If Vim is not installed, use the following command to install:sudo apt-get install vimCreate the. Vim directory under the user directory, under which the bundle directory is created:mkdir. Vim\bundleInstall Bundle/vundle:git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundleCreate or edit the. vimrc file under the user directory to add the following:Set Nocompatibleset rtp+=~/.vim/bundle/vundle/call VUNDLE#RC () "Let Vundle manage Vundle" required! Bundle ' Gmarik/vundle ' "The bund
Python is a cross-platform programming language that can run on all major operating systems. Linux is an operating system designed for programming, so Python should be installed by default on most computers that have Ubuntu installed.To determine if it is, you can bring up the terminal and enter Python to testIf you wa
multiply the percentage of memory that the process occupies, which is the amount of memory usedprocinfo['memoryused']=Memory_stat () ['Memtotal']*Float (ps_stat[3])/ -procinfo['Start']=ps_stat[8]procinfo['Startcommand']=ps_stat[Ten]returnProcInfoThen use Ipython, test, start a Python process, assuming the process ID is 2168, then: fromMachineinfoImportProc_statPS=Proc_stat (2168)Ps{'memoryused':3650289.6639999999,#This is done in byte, or you can con
1. Installation of VirtualBoxRefer to the general installation method.VirtualBox 4.3.14 for Windows Hosts:http://download.virtualbox.org/virtualbox/4.3.14/virtualbox-4.3.14-95030-win.exe2. Installation of Ubuntu serverUBUNTU-14.04-SERVER-AMD64 (Http://www.ubuntu.com/download/server)
Configuring the Chinese Environment
The installation process, initially select "Chinese", after the installation is complete. Avoid VirtualBox terminal Chine
need to exit the virtual environment before you can perform the delete Note: 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 a virtual environmentDeactivate
Entering a virtual environmentWorkon [Virtual Environment Name] Example: Workkon myworkNote: Pressing workon+ two times the TAB key prompts all virtual environments.
View
recently, because of the second project in information retrieval, you need to crawl the microblog data and then process it. Brother gave the code, let's crawl slowly, but under Ubuntu, a lot less python packages . Need to be installed. 1. First run, say less python, beautifulsoup package, used to parse HTML file magic, so important package how can be missing, B
1. To install VIM, you can install it using the Apt-get tool that comes with Ubuntu.
Apt-get Install Vim-gnome
2, after the installation is successful, configure
1> first automatic hint completion configuration (pydiction)
From the official download http://www.vim.org/scripts/script.php?script_id=850 the latest can, after decompression, into the extracted directory, execute the following command
# CP python_pydiction.vim/usr/share/vim/vim74/ftplugin
Environment:-Ubuntu 16.04-OpenCV + contrib 3.2.0 (download link in this article)-Python 3.5Configurations that are based on other environments should be similar.There's no time to explain, just get in the car.Update under System:
sudo apt-get update
sudo apt-get upgrade
Installation dependencies:
sudo apt-get install build-essential cmake pkg-config
sudo apt-get install Libjpe
The first is the installation: Https://pypi.python.org/pypi/mutagenInstallation:TAR-ZXVF mutagen-1.29.tar.gzCD mutagen-1.29./setup.py Build./setup.py InstallUse:From Mutagen.mp3 import MP3, EasyMP3From MUTAGEN.ID3 import EasyID3From MUTAGEN.ID3 import COMM#EasyMP3继承自MP3, it directly assigns ID3 to EasyID3, using EasyMP3 can be more convenient to obtain such as album name, singer name, song name and other tag informationPath = "~/home/yourself/workspace/music/test.mp3"Mp3_info = EasyMP3 (path)Alb
For a new notebook, the newly installed requests module cannot be imported in Pycharm:Traceback (most recent call last): File "/home/winstercheng/PycharmProjects/Crawler/C/Weibo.py", line 11, in The workaround is to file->setting-> search project interpreter, select the project Interprete of your own, have a green "+" sign on the right, click Add requests, Select the Install packageThird-party module in Ubuntu under
Error message:Can‘t connect to HTTPS URL because the SSL module is not available.
When you connect to HTTPS, you are prompted that SSL is not available
Test# 进入python$ python3 # or python3.6# 导入SSL模块>>> import sslIf the following prompt appears, Python does not support SSL.Solution Download File
Openssl
$ wget http://www.openssl.org/source/openssl-1.0.2e.tar.gz
Python3.6-Sele
Referenced from: 77502788Currently using ubuntu14.041. Add the python3.6 installation package and install it (you can also go to the official website to download the installation package)[HTML]View PlainCopy
code class="Language-python">sudo apt-get install Software-properties-common Code>
sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get
Part1:python compiling1, directly in the terminal compile-----in Ubuntu Python is in the home folder, input python (Python2 compilation, want to Python3 direct input python3)The general recommended use is: Ipython32, use VI to create a file, python+ file name compilation. Yo
Ubuntu 14.02 Compilation and configuration apache2.4 (Python CGI):# 下载apache2.4源码包wget http://mirrors.cnnic.cn/apache//httpd/httpd-2.4.12.tar.gz# 安装apr依赖库apt-get install libapr1 libaprutil1 libapr1-dev libaprutil1-dev# 解压并编译安装tar -xvf httpd-2.4.12.tar.gzcd httpd-2.4.12./configure --prefix=/usr/local/apache2make make installTo configure CGI:Remove the comments from the following two lines:#LoadModule cgid_m
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.