Work in a virtual environment with Python virtualenv.

Python version 2.6.6 on CentOS Python version you want to use in a virtual environment 2.7.6

The Python 2.7.6 binary is

/opt/local/bin/python2.7


 will do.

## When entering a virtual environment

$python -V Python 2.6.6

$mkvirtualenv --python=/opt/local/bin/python2.7 myvenv Running virtualenv with interpreter /opt/local/bin/python2.7 New python executable in myvenv/bin/python2.7 Not overwriting existing python script myvenv/bin/python (you must use myvenv/bin/python2.7) Installing setuptools, pip...done.

(myvenv)$python -V Python 2.7.6


## When leaving the environment

(myvenv)$deactivate

$python -V Python 2.6.6



Recommended Posts

Work in a virtual environment with Python virtualenv.
Create a virtual environment with conda in Python
Build python virtual environment with virtualenv
Create a virtual environment with Python!
Building a virtual environment with Python 3
Build a python virtual environment with virtualenv and virtualenvwrapper
virtual environment in python
Build a python virtual environment with pyenv
Virtual environment with Python 3.6
Ubuntu18.04.05 Creating a python virtual environment in LTS
Building a python environment with virtualenv and direnv
Start Django in a virtual environment with Pipenv
Commands for creating a python3 environment with virtualenv
Manage python environment with virtualenv
Building a Python virtual environment
Building a Python virtual environment
I want to work with a robot in python.
Use rospy with virtualenv in Python3
Try running python in a Django environment created with pipenv
[Django3] Display a web page in Django3 + WSL + Python virtual environment
How to develop in a virtual environment of Python [Memo]
python in virtualenv
[Pyenv] Building a python environment with ubuntu 16.04
Install Django in a pipenv virtual environment
Spiral book in Python! Python with a spiral book! (Chapter 14 ~)
Building a Python3 environment with Amazon Linux2
Let's create a virtual environment for Python
Building a Python 3.6 environment with Windows + PowerShell
How to work with BigQuery in Python
[Mac] Building a virtual environment for Python
Creating a python virtual environment on Windows
Create a virtual environment with Python_Mac version
Clean python environment with pythonz and virtualenv
To work with timestamp stations in Python
Creating a virtual environment in an Anaconda environment
I started Node.js in a virtual environment
Build a modern Python environment with Neovim
Add a Python virtual environment to VSCode
Introduced sip-4.14 in python3.2.2 environment with MacOS 10.7.4
Try using virtualenv, which can build a virtual environment for Python
From installing Ansible to building a Python environment in Vagrant's virtual environment
Create a Vim + Python test environment in 1 minute
Prepare a Python virtual environment for your project with venv with VS Code
[Python] Get the files in a folder with Python
Use the latest pip in a virtualenv environment
Build a python environment with ansible on centos6
Get a list of packages installed in your current environment with python
Building a Python environment with WLS2 + Anaconda + PyCharm
Python (Windows 10) Virtual Environment / Package with VS Code
Manage Python multiple version environment with Pythonz, virtualenv
[Python] Build a Django development environment with Docker
python virtual environment Pipenv
Steps to create a Python virtual environment with VS Code on Windows
Build a Django environment with Vagrant in 5 minutes
[Memo] Build a virtual environment with Pyenv + anaconda
[Python] Web development preparation (building a virtual environment)
Think about building a Python 3 environment in a Mac environment
[Venv] Create a python virtual environment on Ubuntu
Python environment with docker-compose
Create a new page in confluence with Python
Flow of creating a virtual environment with Anaconda