The way is
pip install <package_name> --upgrade
or in short
pip install <package_name> -U
Using sudo
will ask to enter your root password to confirm the action, but although common, is considered unsafe.
If you do not have a root password (if you are not the admin) you should probably work with virtualenv.
You can also use the user flag to install it on this user only.
pip install <package_name> --upgrade --user
Related Posts:
- ‘pip’ is not recognized as an internal or external command
- How do I update\upgrade pip itself from inside my virtual environment?
- bash: pip: command not found
- How to uninstall pip on OSX?
- How can I install packages using pip according to the requirements.txt file from a local directory?
- “pip install unroll”: “python setup.py egg_info” failed with error code 1
- How do I install pip on macOS or OS X?
- Pip freeze vs. pip list
- TensorFlow not found using pip
- How to install pip with Python 3?
- Is there a way to create multiline comments in Python?
- How can I remove a specific item from an array?
- Python integer incrementing with ++ [duplicate]
- Replacing instances of a character in a string
- IndexError: too many indices for array
- Python3 – ModuleNotFoundError: No module named ‘numpy’
- What is the purpose of the return statement?
- bash: pip: command not found
- How to read a large file – line by line?
- deleting file if it exists; python
- Reverse a string in Python
- Why am I seeing “TypeError: string indices must be integers”?
- Python Linked List
- What is the result of % in Python?
- How to print without a newline or space
- Python time.sleep() vs event.wait()
- Program to Unjumble Words on Python [closed]
- Error: ‘int’ object is not subscriptable – Python
- How to uninstall Anaconda completely from macOS
- How to overcome TypeError: unhashable type: ‘list’
- Python: Start and stop timer [duplicate]
- Does Python have a ternary conditional operator?
- How do I install opencv using pip?
- How do I compare two strings in python?
- Curve curvature in numpy
- ImportError: No module named sklearn.cross_validation
- How can I prevent the TypeError: list indices must be integers, not tuple when copying a python list to a numpy array?
- What are data classes and how are they different from common classes?
- Tensorflow import error: No module named ‘tensorflow’
- Python random function
- Converting NumPy array into Python List structure?
- ImportError: No module named matplotlib.pyplot
- How do you get the logical xor of two variables in Python?
- ValueError: could not convert string to float: id
- How do I install pip on macOS or OS X?
- How can I install pip on Windows?
- The difference between comparison to np.nan and isnull()
- Best way to return multiple values from a function? [closed]
- Where does pip install its packages?
- Could not find a version that satisfies the requirement tensorflow
- How do I install a Python package with a .whl file?
- “ssl module in Python is not available” when installing package with pip3
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- import opencv vs import cv2
- No module named ‘psycopg2’
- filename.whl is not supported wheel on this platform
- “ssl module in Python is not available”
- Permission denied error by installing matplotlib
- Updating matplotlib in virtualenv with pip
- E: unable to locate package pip
- How to install pip3 on Windows?
- “ImportError: no module named ‘requests'” after installing with pip
- How do I install the yaml package for Python?
- How to install PIP on Python 3.6?
- error: Unable to find vcvarsall.bat
- AttributeError: Module Pip has no attribute ‘main’
- Can I force pip to reinstall the current version?
- Could not find a version that satisfies the requirement
- What is the purpose of “pip install –user …”?
- How to upgrade all Python packages with pip
- What is the easiest way to remove all packages installed by pip?
- How to get pip to work behind a proxy server
- How to install multiple python packages at once using pip
- How are Pipfile and Pipfile.lock used?
- Checking whether pip is installed?
- AttributeError: Module Pip has no attribute ‘main’
- How can I install Python’s pip3 on my Mac?
- upgade python version using pip
- ‘pip install’ fails for every package (“Could not find a version that satisfies the requirement”) [duplicate]
- Visual C++ for python failed with exit status 2 when installing divisi2
- python pip on Windows – command ‘cl.exe’ failed
- pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
- ImportError: No module named ‘yaml’
- How to run Pip commands from CMD
- How to install PyGame on Python 3.4?
- urllib2.HTTPError: HTTP Error 403: Forbidden
- Django Rest Framework — no module named rest_framework
- python NameError: name ‘file’ is not defined
- boto3 python 2.7 ImportError: No module named boto3 USER_BASE USER_SITE site packages doesn’t exist
- pip3 error – ‘_NamespacePath’ object has no attribute ‘sort’
- ImportError: No module named Crypto.Cipher
- Python can’t find module NLTK
- ERROR: Could not build wheels for cryptography which use PEP 517 and cannot be installed directly
- How to install pip for Python 3 on Mac OS X?
- How to install Openpyxl with pip
- Failed building wheel for Twisted in Windows 10 python 3
- How to resolve “ImportError: DLL load failed:” on Python?
- Install pip for python 3.5
- How to install PyQt4 on Windows using pip?
- How to install PyQt4 on Windows using pip?