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
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- Import Error: No module named numpy
- bash: pip: command not found
- TypeError: a bytes-like object is required, not ‘str’ when writing to a file in Python3
- 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?
- TypeError: not all arguments converted during string formatting python
- Using Python 3 in virtualenv
- Where does pip install its packages?
- WinError 2 The system cannot find the file specified (Python)
- Local variable referenced before assignment?
- ‘method’ object is not subscriptable. Don’t know what’s wrong
- error UnicodeDecodeError: ‘utf-8’ codec can’t decode byte 0xff in position 0: invalid start byte
- Error: ” ‘dict’ object has no attribute ‘iteritems’ “
- filename.whl is not supported wheel on this platform
- How to upgrade pip3?
- TypeError: Missing 1 required positional argument: ‘self’
- What is __pycache__?
- Permission denied error by installing matplotlib
- Updating matplotlib in virtualenv with pip
- SystemError: Parent module ” not loaded, cannot perform relative import
- How to remove anaconda from windows completely?
- TypeError: ‘<=' not supported between instances of 'str' and 'int' [duplicate]
- TypeError: unsupported operand type(s) for -: ‘str’ and ‘int’
- TypeError: can’t use a string pattern on a bytes-like object in re.findall()
- “ImportError: no module named ‘requests'” after installing with pip
- Type error: cannot convert the series to
- Could not find a version that satisfies the requirement
- How to remove punctuation marks from a string in Python 3.x using .translate()?
- What is the easiest way to remove all packages installed by pip?
- Subplot for seaborn boxplot
- How to get pip to work behind a proxy server
- enumerate() for dictionary in python
- Using Pip to install packages to Anaconda Environment
- How are Pipfile and Pipfile.lock used?
- Converting int to bytes in Python 3
- How to reinstall a pip package even if it exists
- How to get the current working directory using python 3?
- No Module Named ‘_pywrap_tensorflow_internal’
- min() arg is an empty sequence
- No module named “Torch”
- ‘pip install’ fails for every package (“Could not find a version that satisfies the requirement”) [duplicate]
- What is the meaning of ‘for _ in range()
- Python: AttributeError: ‘_io.TextIOWrapper’ object has no attribute ‘split’
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- python is not recognized windows 10
- TypeError: ‘_io.TextIOWrapper’ object is not subscriptable
- How to print multiple lines of text with Python
- ImportError: No module named cv2
- How to compare individual characters in two strings in Python 3
- How do I run pip on python for windows?
- How to get the text cursor position in Windows?
- Need to install urllib2 for Python 3.5.1
- ImportError: No module named ‘xlrd’
- pip3 error – ‘_NamespacePath’ object has no attribute ‘sort’
- Moving Average Pandas
- What does {0} mean in this Python string?
- Tab Error in Python
- Python 3.5.1 urllib has no attribute request
- Why do I get this error “TypeError: ‘method’ object is not iterable”?
- Could not install packages due to an EnvironmentError: [Errno 13]
- What is the purpose of dollar sign in this Python3 string formatting expression?
- What is the meaning of “int(a[::-1])” in Python?
- Getting a name error when trying to input a string [duplicate]
- How to install numpy to Python 3.5?
- Error loading MySQLdb module: No module named ‘MySQLdb’
- How do you switch between python 2 and 3, and vice versa?
- Python 3 integer division [duplicate]
- Python – difference between two strings