virtualenv can't find python2

I'm on a mac, which comes with python 2.7 installed, so I should have the required version.

At least, I believe that's the problem. I'm getting an error when trying to run make install for a project, and getting the following error:

The executable python2 (from --python=python2) does not exist
make: *** [bin/python] Error 3
virtualenv --python=python3 fibonacci_env

Point out which python

Pipenv & Virtual Environments — The Hitchhiker's Guide to Python, virtualenv venv will create a folder in the current directory which will contain the Python executable files, and a copy of the pip library which you can use to install � virtualenv can create isolated Python environments. Python by default install modules system wide. That can become an issue if programs need different versions of the same module. This is unlike other programming languages that don’t install modules system wide.

Specify the full path to the Python interpreter (not sure if this is the right path - haven't used MacOs):

mkvirtualenv myenv --python=/Library/Frameworks/Python.framework/Versions/2.7/bin/python

or smth like:

--python=$(which python)

venv — Creation of virtual environments — Python 3.8.5 , Multiple paths can be given to venv , in which case an identical virtual environment will be created, according to the given options, at each provided path. Once a� virtualenv is a CLI tool that needs a Python interpreter to run. If you already have a Python 3.5+ interpreter the best is to use pipx to install virtualenv into an isolated environment. This has the added benefit that later you’ll be able to upgrade virtualenv without affecting other parts of the system.

Python 2.7 is part of system framework and is located here:

/System/Library/Frameworks/Python.framework/Versions/

If you want to create a virtualenv with python2.7 on macOS Sierra do this:

virtualenv -p /System/Library/Frameworks/Python.framework/Versions/2.7/bin/python my_venv

Installing packages using pip and virtual environments — Python , Using virtualenv allows you to avoid installing Python packages globally which could break system tools or other projects. You can install virtualenv using pip. virtualenv is a tool to create isolated Python environments. You can read more about it in the Virtualenv documentation. This article provides a quick summary to help you set up and use a virtual environment. Where’s My Python? ¶

Virtualenv, On Mac OS X, you will need Xcode to use virtualenv. See this article for details. Using Virtualenv. Once you have virtualenv installed, you can� A Virtual Environment is a tool to keep the dependencies required by different projects in separate places, by creating virtual Python environments for them. It solves the “Project X depends on version 1.x but, Project Y needs 4.x” dilemma, and keeps your global site-packages directory clean and manageable.

Virtual Environments — The Hitchhiker's Guide to Python, virtualenv venv will create a folder in the current directory which will contain the Python executable files, and a copy of the pip library which you can use to install � virtualenv is a tool to create isolated Python environments. virtualenv creates a folder which contains all the necessary executables to use the packages that a Python project would need. It can be used standalone, in place of Pipenv. Install virtualenv via pip: $ pip install virtualenv

Python Virtual Environments: A Primer – Real Python, Create a new virtual environment inside the directory: # Python 2: $ virtualenv env # Python 3 $ python3 -m venv env. Note: By default, this will not include any of� Users can specify a set of local paths containing additional wheels by using the extra-search-dir command line argument flag. When searching for a wheel to use virtualenv performs lookup in the following order: embedded wheels, upgraded embedded wheels, extra search dir. Bundled wheels are all three above together.