Home IT Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ CentOS 6.5 using Virtualenv under development environment to build Python3     - Server Security Analysis attack on Linux (Linux)

- Python type way of comparison (Programming)

- Java look and feel mode (Facade mode) (Programming)

- Linux system crash (no such file or directory) How to rescue database (Linux)

- Spark and Hadoop comparison (Server)

- Linux shared libraries .so file name and Dynamic Link (Linux)

- CentOS 6.4 installation environment to build Scrapy 0.22 (Linux)

- Oracle PL / SQL based cursor (Database)

- Nginx start, stop, smooth start, smooth upgrade (Server)

- Java objects to garbage collection (Programming)

- According to the national position on how to block traffic in Linux (Server)

- Linux-du and df command (Linux)

- Zookeeper Rights Management and Quota Management (Server)

- How to install new fonts on Ubuntu 14.04 and 14.10 (Linux)

- Using Ruby to build a simple HTTP service and sass environment (Server)

- Git Advanced Tutorial (Linux)

- Install FFmpeg compiling from source in Mac OS X environment (Linux)

- Linux Oracle delete archived logs (Database)

- CentOS 5.5 install ntop (Linux)

- redis configuration in detail (English) (Database)

  CentOS 6.5 using Virtualenv under development environment to build Python3
  Add Date : 2016-07-12      
  Problem Description

Environment: CentOS6.5

Python3 want to develop in this environment, but the environment is CentOS6.5 default Python version 2.6.6.
Before practice is installed directly from source Python3, replace the existing development environment, but found that many script systems rely Python2.6, direct replacement will lead to a lot of software is not normal in the subsequent use.
Today found a friend to use Virtualenv Python3 development environment to build, here recorded, but also so that I can later reference.

Installation Python3

Installation script as follows:

wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz
tar zxvf Python-3.4.3.tgz
cd Python-3.4.3
./configure --prefix = / usr / local
make && make altinstall

After running the above command, you can see the new /usr/local/bin/python3.4 compilation environment in the directory.

Note: Here we are using make altinstall, if you use make install, you will see a system in two different versions of Python in / usr / bin / directory. This will cause a lot of problems, but also hard to deal with.

Development environment to build python3

1, the installation virtualenv, can pip install command is as follows:

pip install virtualenv

If you do not pip, through the following command to install:

yum install python-pip

2, create a virtual environment:

virtualenv -p /usr/local/bin/python3.4 py34env

After executing the above command, creates py34env folder in the current directory, the folder is a virtual environment we have created.

3, activate the virtual environment:

source py34env / bin / activate

3.1 ipython installed in a virtual environment

pip install ipython

3.2 ipython start in a virtual environment:


4, exit the virtual environment

- How to Install Foreman under Ubuntu (Server)
- Linux atomic operations and synchronization mechanisms (Programming)
- Android Custom View step (Programming)
- A brief description of Java 8 new features introduced syntax (Programming)
- Build ftp server under CentOS 6.5 (Server)
- Bootstrap 3.3.5 release download, Web front-end UI framework (Linux)
- JavaScript function definition mode (Programming)
- About Auto Layout and frame (Programming)
- Linux prohibit non-WHEEL user su command Detail (Linux)
- CentOS 6.6 x64 Oracle Database 11gR2 RAC automated installation scripts (Database)
- After CentOS configure SSH password Free, still prompted for a password (Linux)
- Use Python automatically cleared Android Engineering excess resources (Programming)
- MySQL database to open a remote connection method (Database)
- CentOS6 5 Configure SSH password Free (Linux)
- CentOS 7 RHEL 7 to reset the root password (Linux)
- Introduction to thread pooling and simple implementation (Programming)
- A list of the basics of Python, Ganso, Dictionary (Programming)
- How to Create a file can not be changed under Linux (Linux)
- Analytical Ceph: handle network layer (Server)
- Java call by value and by reference (Programming)
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.