Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ CentOS 6.5 using Virtualenv under development environment to build Python3     - Teach you how to choose to install CentOS 6.5 installation package (Linux)

- systemd run levels and service management command Introduction (Linux)

- Linux System Getting Started Learning: The Linux anacron command (Linux)

- Upgrade installation manual CentOS6.5 GCC4.8.2 (Linux)

- php security study (Linux)

- Installation of Ubuntu Make under Ubuntu 15.10 (Linux)

- Computer security perimeter recommendations (Linux)

- How to use Xmanager Remote Desktop and VNC Log (Linux)

- Efficient running Linux virtual machine Six Tips (Linux)

- Disk Management LVM (Linux)

- Ora-00439: feature not enabled: managed standby (Database)

- Linux Getting Started tutorial: build your own Vim (Linux)

- C ++ function object (Programming)

- 24 Docker recommendations (Linux)

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

- The maximum subsequence algorithm and optimization problems (Programming)

- How to implement large-scale distributed Yahoo depth study on the Hadoop cluster (Server)

- Linux install the Java Runtime Environment and the output Hello World under (CentOS) (Linux)

- Spring JDBC Comments (Programming)

- Linux Quick Install MongoDB (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:

ipython

4, exit the virtual environment

deactivate
     
         
       
         
  More:      
 
- xCAT Installation Kit (Linux)
- How to enhance the security of Linux systems (Linux)
- impdp error ORA-39001, ORA-39000, ORA-31619 (Database)
- Git you do not know about some of the things (Linux)
- pureftpd basis: Install, configure, implement, anonymous logon (Linux)
- OpenGL Superb Learning Notes - GLSL language foundation (Programming)
- Upgrade to Node V4 seven reasons (Programming)
- OpenDaylight Helium version installed (Linux)
- Servlet 3.0 interfaces of AsyncListener (Programming)
- How to modify the SQL Server auto-increment value and the corresponding solution (Database)
- How do you know your public IP terminal in Linux (Linux)
- Linux loopback adapter Driven Design (Programming)
- How linux network security configuration (Linux)
- Ubuntu users to install Gnome-Pie 0.6.5 (Linux)
- Use innobackupex full realization of MySQL hot backup (Database)
- Linux can modify the maximum number of open files (Linux)
- sed and awk in shell usage and some examples (Linux)
- Spring AOP for logging (Programming)
- Use mysqldump backup performed MariaDB (Database)
- To configure linux transparent firewall (Linux)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.