A note about the python version of python virtualenv

Trying to switch the version of the virtual environment of python from 2 series to 3 series It took a while, so I wrote a memo.

In conclusion, it was because the command when creating the virtual environment did not have an option.

Command without options $ virtualenv env Commands with options $ virtualenv env --python=/usr/bin/python3

If you create a virtual environment with a command without options, It was made with the python version (2 series) included in mac by default, Even if I executed the command to switch to 3 series, I could not switch. (There may be a way to change it, but I didn't know.)

Recommended Posts

A note about the python version of python virtualenv
pyenv-change the python version of virtualenv
About the virtual environment of python version 3.7
[Note] About the role of underscore "_" in Python
About the ease of Python
About the features of Python
A note about [python] __debug__
A reminder about the implementation of recommendations in Python
Python Note: The mystery of assigning a variable to a variable
Python: A Note About Classes 1 "Abstract"
Change the Python version of Homebrew
About the basics list of Python basics
A note about mock (Python mock library)
[Note] Import of a file in the parent directory in Python
[Python] Try pydash of the Python version of lodash
[python] [meta] Is the type of python a type?
The story of blackjack A processing (python)
Python Note: The secret role of commas
A note about doing the Pyramid tutorial
[python] A note that started to understand the behavior of matplotlib.pyplot
Try the python version of emacs-org parser orgparse
A Java programmer studied Python. (About the decorator)
Get the caller of a function in Python
Make a copy of the list in Python
Try the free version of Progate [Python I]
Data analysis in Python: A note about line_profiler
A note about __call__
A memorandum about the Python tesseract wrapper library
About the behavior of Model.get_or_create () of peewee in Python
[Python] A rough understanding of the logging module
Output in the form of a python array
A note about subprocess
A note about the new style base class
A note about the functions of the Linux standard library that handles time
A note about mprotect (2)
About the * (asterisk) argument of python (and itertools.starmap)
A discussion of the strengths and weaknesses of Python
[Python] Note: A self-made function that finds the area of the normal distribution
[Python] A program that counts the number of valleys
A memorandum about the warning of the pylint output result
Cut a part of the string using a Python slice
Make a note of the list of basic Pandas usage
A python implementation of the Bayesian linear regression class
Let's use the Python version of the Confluence API module.
A story about changing the master name of BlueZ
Tasks at the start of a new python project
python memo (for myself): About the development environment virtualenv
[Python] A program that compares the positions of kangaroos.
Align the version of chromedriver_binary
Towards the retirement of Python2
About the Python module venv
About the enumerate function (python)
About various encodings of Python 3
A note about KornShell (ksh)
Version upgrade of python Anaconda
A memorandum about correlation [Python]
Check OpenSSL version of python 2.6
A note about TensorFlow Introduction
A memorandum about Python mock
About the components of Luigi
Specify python version with virtualenv