On Windows, it’s a good idea to stick to launching pip
via the py.exe
common launcher, so you can provide flags to specify which version of Python to use without needing to deal with a complicated PATH
.
To use it for Python 3, just replace:
pip3 RESTOFCOMMAND
with:
py -3 -mpip RESTOFCOMMAND
It’s a little bit longer to type, but it avoids a lot of hassles with PATH
management, and changing it to run on more and more specific Python versions (when you have multiple versions available) is easy; if you want to be sure Python 3.6 is used even if Python 3.7 is available, you’d just change to:
py -3.6 -mpip RESTOFCOMMAND
Related Posts:
- How to install pip3 on Windows?
- Pip – Fatal error in launcher: Unable to create process using ‘”‘
- How to install pip with Python 3?
- How to uninstall a package installed with pip install –user
- How can I install pip on Windows?
- PermissionError: [Errno 13] Permission denied
- How to install python3 version of package via pip on Ubuntu?
- Could not find a version that satisfies the requirement tensorflow
- Could not find a version that satisfies the requirement tensorflow
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- Python Setup Disabling Path Length Limit Pros and Cons?
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- How can I install Python’s pip3 on my Mac?
- What is the purpose of “pip install –user …”?
- How can I install Python’s pip3 on my Mac?
- python mpl_toolkits installation issue
- Pipenv: Command Not Found
- python pip on Windows – command ‘cl.exe’ failed
- Anaconda Installed but Cannot Launch Navigator
- ImportError: No module named ‘yaml’
- Django Rest Framework — no module named rest_framework
- pip throws TypeError: parse() got an unexpected keyword argument ‘transport_encoding’ when trying to install new packages
- How to know/change current directory in Python shell?
- How to install Openpyxl with pip
- How to install NumPy for Python 3.6
- Error: No module named ‘fcntl’
- How to install PyQt4 on Windows using pip?
- How to install PyQt4 on Windows using pip?
- SyntaxError: unexpected EOF while parsing
- How to use filter, map, and reduce in Python 3
- Use Gif Logo For Loading Screen In Kivy
- Praw & Discord.py: The bot keep sending the same meme. I want the bot to send different meme whenever it is asked
- How can I make a time delay in Python? [duplicate]
- Python – TypeError: ‘int’ object is not iterable
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How do I update\upgrade pip itself from inside my virtual environment?
- How to open a file using the open with statement
- How do I update\upgrade pip itself from inside my virtual environment?
- Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
- What is the difference between rw+ and r+
- ‘pip’ is not recognized as an internal or external command
- Python – TypeError: ‘int’ object is not iterable
- Import Error: No module named numpy
- How to update/upgrade a package using pip?
- Python: ‘ModuleNotFoundError’ when trying to import module from imported package
- Relative imports – ModuleNotFoundError: No module named x
- bash: pip: command not found
- TypeError: a bytes-like object is required, not ‘str’ when writing to a file in Python3
- Relative imports in Python 3
- ImportError: No module named pip
- ImportError: No module named pip
- Pip freeze vs. pip list
- How do I install pip on macOS or OS X?
- Best way to convert string to bytes in Python 3?
- ImportError: No module named tensorflow
- Best way to convert string to bytes in Python 3?
- What does the list() function do in Python?
- TypeError: not all arguments converted during string formatting python
- What is setup.py?
- How is Anaconda related to Python?
- Permanently add a directory to PYTHONPATH?
- Where is BeautifulSoup4 hiding?
- How to add to the PYTHONPATH in Windows, so it finds my modules/packages?
- FileNotFoundError: [WinError 2] The system cannot find the file specified:
- Invalid character in identifier
- Using Python 3 in virtualenv
- How to correct TypeError: Unicode-objects must be encoded before hashing?
- Where does pip install its packages?
- How to remove EOFError: EOF when reading a line?
- WinError 2 The system cannot find the file specified (Python)
- hashlib.md5() TypeError: Unicode-objects must be encoded before hashing
- TypeError: cannot unpack non-iterable NoneType object
- Is there a ‘foreach’ function in Python 3?
- Where does pip install its packages?
- Python inline if statement
- Updating a dictionary in python
- Could not install packages due to an EnvironmentError:
- Convert bytes to a string
- How to copy a dictionary and only edit the copy
- How to print like printf in Python3?
- “Defaulting to user installation because normal site-packages is not writeable” python message
- Local variable referenced before assignment?
- How to install pytorch in Anaconda with conda or pip?
- AttributeError: ‘module’ object has no attribute ‘urlopen’
- Python Error: AttributeError: __enter__ [duplicate]
- Configuring so that pip install can work from github
- import opencv vs import cv2
- TypeError: ‘float’ object not iterable
- No module named ‘psycopg2’
- TypeError: ‘type’ object is not subscriptable when indexing in to a dictionary
- How to pip or easy_install tkinter on Windows
- ‘method’ object is not subscriptable. Don’t know what’s wrong
- Conda uninstall one package and one package only
- Invalid character in identifier
- Importing class from another file [duplicate]
- filedialog, tkinter and opening files
- pip or pip3 to install packages for Python 3?
- anaconda – path environment variable in windows
- error UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte