Discover create python executable linux, include the articles, news, trends, analysis and practical advice about create python executable linux on alibabacloud.com
the root directory:Command:./examples/mnist/train_lenet.shAccuracy can reach 0.9912Four. Install the Python interfaceSince Python is 2.7.6 under its own Linux system, it has not been reinstalled. If the version is too old, it is recommended to reinstall it. Reference: http://blog.csdn.net/pan_tian/article/details/76844091. Install Pipsudo apt-get install
protected] tools]# CD Python-3.5.0[Email protected] python-3.5.0]#/configure--prefix=/usr/local--enable-shared[[email protected] python-3.5.0]# make make install[Email protected] python-3.5.0]# ln-s/usr/local/bin/python3/usr/bin/python3Before running Python, you need to co
: You can search for the content specified in the file -n Displays the number of matching lines -V does not display matching rows -I ignores case echo Uses: Echo Plus string function to print input strings Redirect Use the Echo character > file Function: Import the content into the file >> is append > Overwrite pipe Use | Switch one output to another input User Rights R R is a read mode W W is written meaning x x is executable
that apply to your Linux distribution.
# Aptitude Search Idle [Debian and its derived distributions]
# Yum Search idle [CentOS and Fedora]
# DNF Search Idle [fedora 23+ Version]
Then, you can install it as follows:
$ sudo aptitude install idle-python3.2 # I ' m using Linux Mint 13
After the installation is successful, you will see the IDLE run screen. It's like a
First, install python3.5 by default, Linux is the default use of 2.x version, now we want to install 3.x version, the following 1, go to the official website to download the installation package. (Here i download is the. tgz version) 2, with the command decompression installation package TAR-ZXVF + Compression Pack 3, into the extracted file CD + extracted folder 4,./configure--prefix=/usr/local/python3.5 Redirect to this folder to compile5.make6.make
readline-devel tk-devel gcc make Step Two: Extract the Python source packageExecute command:TAR-XZVF python-3.6.1.tgz-c/usr/local/src/ #src一般用来存放源码目录Go to the/usr/local/src/directorycd/usr/local/src/ #目录下的python -3.6.1 is the extracted source package directory Enter the source package directory:cd/usr/local/src/python
) values=[]for I in Range: Values.append ((i, ' Hello mysqldb,i am Record ' + str (I)) # Insert Multi Recordscur.executemany ("" "INSERT into test values (%s,%s)" ", values) # C Lose Cursorcur.close () print "Create successfully!"Three: Linux Operational database commands(1) Create a databaseCommand: Create databases (
Windows+linux Installing the Python tool setuptoolsSetuptools is a sub-project of the Python Enterprise Application Kit (PEAK), which is an enhanced tool for Python's distutilsde tools (for Python 2.3.5 or later, 64 Bit platforms are available for Python version 2.4 or more,
The Python version on the server is too old to install a new Python version in order to run my code. Because of the needs of the environment, but can not uninstall the old version, so install a new, use the soft chain to upgrade. Using the system comes with the yum,apt-get and the like software that must be no way to install, need to re-source compilation installation.Download
installed OpenCV on Linux.
5. Test Your OpenCV in Python
To test whether your OpenCV can be used in Python, you can run a small piece of code, read an image and display it:
Import cv2 # introduce OpenCV module image = cv2.imread ("logo.png", 1) # Read an image and store it in image cv2.imshow ("Hello, world! ", Image) # cre
Because there is no root permission to use the company server, only Python can be installed in the personal folder, using the source package method of installation, here to record.1.python DownloadsCD to directory/users/w, install Python in this directory. Download the Python source package via the wget command:wget ht
Wow! Installation is very annoying Ah, the last discovery is the cause of their own network. Meditation Summary!!!Python is 3.6CentOS 6 64-bit1. Install Python801704712. Install Pipwget https://bootstrap.pypa.io/get-pip.py--no-check-certificateget-pip.pyMay be error!!! Such as:PIP is configured with locations that require TLS/SSL and however the SSL module in Python are not available.Execute
" = yes; then
End
cat >>confdefs.h
Delete the two sections and the intermediate content.
Compile python for ARM
With the syntax parser, you can start compiling python of the arm version.
mkdir ../build.armcd ../build.arm../configure --prefix=/home/leojay/test/arm-system-working/rootfs --disable-ipv6 --host=arm-linux --enable-shared
First,
Python-colored Linux Command Line terminal interface code example sharing, pythonlinux
First look at the effect:
In linux terminals, ANSI escape sequences are used to control colors.Basic rule: Add \ 033 [to the front and end with \ 033 [0 m to the original colorEnter the following sentence in the terminal to see the green hello output.
>>echo -e '\033[0;32mhell
a text document in which to write Python code. and saved as a. py file. Then enter the file directory in the terminal, input the commandPython hello.py//Assuming that the hello.py file is saved5. Comments, annotated with # in Python6. String, where even a function of STR and repr the first one is to convert the value to a valid string, and the latter is to create a string. In fact, STR is a type and the la
/lib/modules;10./LIB64: Dedicated to the storage location of the secondary shared library files on the x86_64 system;11./usr/:unix Software resource,linux System installation complete the default installation directory of the software. The equivalent of C:\Windows\ and C:\Program files\ two directories under Windows. /usr/subdirectories include:①./usr/bin/users can use the command②./usr/include/Include filesA library of ③./usr/lib/software, a target f
Tag:-- no compile install Create figurelin display cal 1. Download Python source Packagewget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz2. UnzipTAR-XJF python-2.7.3.tar.bz23. Create a new
/usr/include/python2.4/usr/share/man/man1/ Python.1.gzModify the soft connection of the/usr/bin/python to python2.4.3[Email protected] python-2.7.4]# mv/usr/bin/python/usr/bin/python2.4.3[[email protected] python-2.7.4]# Python-ba
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.