Alternatively, since pip
itself is written in python, you can just call it with the python version you want to install the package for:
python2.7 -m pip install foo
More Related Contents:
- Why does “pip install” inside Python raise a SyntaxError?
- Installing specific package version with pip
- Using Pip to install packages to Anaconda Environment
- How to fix installation issues for PyAudio, PortAudio: “fatal error C1083: Cannot open include file: ‘portaudio.h’: No such file or directory”
- What is the easiest way to remove all packages installed by pip?
- Installing SciPy with pip
- “Cannot open include file: ‘config-win.h’: No such file or directory” while installing mysql-python
- Fatal error in launcher: Unable to create process using “”C:\Program Files (x86)\Python33\python.exe” “C:\Program Files (x86)\Python33\pip.exe””
- pip freeze creates some weird path instead of the package version
- How to install psycopg2 with “pip” on Python?
- bash: pip: command not found
- Src layout to dispense .src prefix in imports? Activate venv in PyCharm terminal for development installs
- How to install pip for Python 3 on Mac OS X?
- Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory \\METADATA
- NumPy 1.21.2 may not yet support Python 3.10
- Unable to install Python libraries
- Identifying the dependency relationship for python packages installed with pip
- DistutilsOptionError: must supply either home or prefix/exec-prefix — not both
- sudo pip install VS pip install –user
- PyCharm doesn’t recognize installed module
- Error while downloading the requirements using pip install (setup command: use_2to3 is invalid.)
- ModuleNotFoundError: No module named ‘…’
- Delete unused packages from requirements file
- How do I remove all packages installed by pip?
- pip/python: normal site-packages is not writeable
- “SSL certificate verify failed” using pip to install packages
- module ‘pip’ has no attribute ‘pep425tags’
- pip3: bad interpreter: No such file or directory
- pip install mysqlclient : Microsoft Visual C++ 14.0 is required
- Pip suddenly using wrong version of Python