Installing the Python version management tool--pyenvgit clone git://github.com/yyuu/pyenv.git ~/.pyenvecho ' export pyenv_root= ' $HOME/.pyenv "' >> ~/.bashrcecho ' Export path= "$PYENV _root/bin: $PATH" ' >> ~/.bashrcecho ' eval "$ (pyenv init-)" ' >> ~/.bashrcexec $SHELL-LView the version of Python that you can install by following this command:Pyenv Install--listAfter viewing the good version, I chose to
Ubuntu 13.04 Default Python version is 2.7, want to do python3 on its development will encounter problems. For example, to use PIP to install a package, the default is to install the Python2 package. If you want to install Python3 's package, you need to use virtualenv.Virtualenv's official website is in http://www.virtualenv.org/en/latest/. As the official said, Virtualenv is a tool for creating a standalo
Ubuntu 13.04 Default Python version is 2.7, want to do python3 on its development will encounter problems. For example, to use PIP to install a package, the default is to install the Python2 package. If you want to install Python3 's package, you need to use virtualenv.Virtualenv's official website is in http://www.virtualenv.org/en/latest/. As the official said, Virtualenv is a tool for creating a standalo
Label:System configuration: Ubuntu 14 (other systems are also similar to the following operation) 1. Install Python via Anaconda Address: Https://www.continuum.io/downloads#linux 2. Installing Theano [Email protected]:~/downloads$ pip Install Theano 3. Installing Keras [Email protected]:~/downloads$ pip Install Keras 4. Installing Spearmint [Email protected]:~/tools$ pip install-e ~/tools/spearmint/ [Ema
Python Virtual Environment installation in ubuntu environment, using tupython1. Virtual Environment Construction
How to install a module in development:
Pip install Module name
Previously, our installation modules were directly installed in the physical environment. This installation method overwrites the previous one. What if multiple projects developed on one machine use modules of different versions? How
the program.But what if you want your program to run from every location?You can save your program in one of the directories in the PATH environment variable. Each time you run any program, the system looks for the directories listed in the PATH environment variable. Then run the program. Simply copy the source file to one of the directories listed in path to make your program available in any location.Echo $PATHOutput:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr
Install and use the Python rq module in Ubuntu 14.04
rqYesPythonA third-party module, usingrqConvenient and quick implementationPythonTo realize the distributed architecture of multi-state computers. WhereRYesRedisMeaning,QYesQueueFirst letter,rqUseRedisAndQueueDistributedMasterAndWorker, ThroughRedisStorage task queue.Ubuntu14.04 install rq
Assume that you have installedPythonAndpip, This article passes`pi
Installation
Start by installing all necessary dependencies, and mercurial and checkinstall for the installation:
1
sudo apt-get install python3-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev checkinstall mercurial
Then download the latest version ofPygame source code with the following command (this uses mercur
PPA installation//Too slowsudo add-apt-repository ppa:mystic-mirage/pycharmsudo apt-get updatesudo apt-get install Pycharm# Of course you can also install the Community versionsudo apt-get install pycharm-communityDownload installation1. Download the latest pycharm from http://www.jetbrains.com/pycharm/download/2. Enter the Pycharm download directory in the terminal, enter the command tar xfz pycharm-*.tar.gz, extract the Pycharm folder to the current directory3. Locate the Bin folder running Py
of the current(3) A: After the cursor(4) A: At the end of the current line(5) O: A new line under the current line(6) O: New row above the current line(7) R: Replace the current character(8) R: Replaces the current character and its characters until the ESC key is pressed(9) S: replaces the specified number of characters with the text entered, starting at the current cursor position(Ten) S: Deletes the specified number of lines and replaces them with the text entered(one) NCW or NCW: Modify the
The Python tutorial says that if you want to output non-English text, prefix u or u,For example:Print U "Hello, motherland"Print U "こんにちは, Private はとてもいいです"The result will be an error: Syntaxerror:non-ascii character ' \xe4 ' in file ...The workaround is to:#!/usr/bin/python#coding: Utf-8Print "こんにちは, private はとてもいいです"Print "This is Chinese, hahaha"Or#!/usr/bin/python
Ulipad is a very useful Python editor, of course, many friends with vim or gedit can, see personal habits.
First, download the Ulipad 4.1 compressed file http://down.51cto.com/data/630118
Unzip to the/tmp/directory
cd/tmp/ulipad/
ls--> See ulipad.py file
Enter Python ulipad.py, note that it is best to use command line completion, otherwise prone to error.
Tip: Impot WX
Input sudo apt
System: Ubuntu 14.04Due to the uninstallation of the Python system, the Python-dependent software was also uninstalled, although Python was later installed, but after restarting the desktop left and above the title bar are gone.1. Method One:Reload the desktop: Press and hold ctrl+alt+f1 to switch to the character term
Installing a Python module under Ubuntu can often be used with the Apt-get and PIP commands. The Apt-get command is a package management command that comes with Ubuntu, and Pip is a tool for Python to install the extension, usually pip downloads the extension's source code and compiles the installation.Python2.7.3 is i
[Python development practice] Windows 7 + VirtualBox + Ubuntu environment configuration, virtualboxubuntu
1. VirtualBox Installation
Refer 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.exe
2. Install Ubuntu server
Ubuntu
InUbuntu 9.04Under ConfigurationApacheAndMod-Python
Directly use the Package Manager for InstallationApache, Browser accessLocalhost,ApacheReturn"It works !".
Directly use the Package Manager for InstallationMod-Python, ReferUBUNTU ForumThis post configuration
Http://ubuntuforums.org/showthread.php? T = 91101
If the first step is suspected to have been done by the Software Package Manager, dir
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.