It looks like your user does not have the permission to install packages in your system (for all users). Here’s how to fix this problem for Linux, macOS and Windows.
Linux / macOS
From your terminal, you can install the package for your user only, like this:
pip install <package> --user
OR
You can use su
or sudo
from your terminal, to install the package as root
:
sudo pip install <package>
Windows
From the Command Prompt, you can install the package for your user only, like this:
pip install <package> --user
OR
You can install the package as Administrator, by following these steps:
- Right click on the Command Prompt icon
- Select the option
Run This Program As An Administrator
- Run the command
pip install <package>
Related Posts:
- import opencv vs import cv2
- Updating matplotlib in virtualenv with pip
- ModuleNotFoundError: No module named ‘matplotlib’
- error: Unable to find vcvarsall.bat
- error: Unable to find vcvarsall.bat
- How do I update\upgrade pip itself from inside my virtual environment?
- How do I update\upgrade pip itself from inside my virtual environment?
- ImportError: DLL load failed: The specified module could not be found
- ImportError: DLL load failed: The specified module could not be found
- How to install pip with Python 3?
- How to update/upgrade a package using pip?
- bash: pip: command not found
- Purpose of “%matplotlib inline”
- How to uninstall a package installed with pip install –user
- Purpose of “%matplotlib inline”
- ImportError: No module named pip
- TypeError: only size-1 arrays can be converted to Python scalars (matplotlib)
- ImportError: No module named pip
- Showing an image with pylab.imshow()
- How do I install pip on macOS or OS X?
- How can I install pip on Windows?
- ImportError: No module named tensorflow
- How do you change the size of figures drawn with Matplotlib?
- Cannot find module cv2 when using OpenCV
- Where is BeautifulSoup4 hiding?
- Cannot find module cv2 when using OpenCV
- RuntimeWarning: invalid value encountered in divide
- Is “from matplotlib import pyplot as plt” == “import matplotlib.pyplot as plt”?
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- ValueError: operands could not be broadcast together with shapes (5,) (30,)
- _tkinter.TclError: no display name and no $DISPLAY environment variable
- ImportError: No module named matplotlib.pyplot
- Where does pip install its packages?
- matplotlib savefig() plots different from show()
- How to resize an image with OpenCV2.0 and Python2.6
- Where does pip install its packages?
- How to install python3 version of package via pip on Ubuntu?
- Could not install packages due to an EnvironmentError:
- Could not find a version that satisfies the requirement tensorflow
- Plotting a 2D heatmap with Matplotlib
- Save plot to image file instead of displaying it using Matplotlib
- “Defaulting to user installation because normal site-packages is not writeable” python message
- Could not find a version that satisfies the requirement tensorflow
- How to install pytorch in Anaconda with conda or pip?
- ImportError: numpy.core.multiarray failed to import
- Python3: ImportError: No module named ‘_ctypes’ when using Value from module multiprocessing
- No handles with labels found to put in legend
- How to plot a histogram using Matplotlib in Python with a list of data?
- Can’t fix “zipimport.ZipImportError: can’t decompress data; zlib not available” when I type in “python3.6 get-pip.py”
- Configuring so that pip install can work from github
- In Matplotlib, what does the argument mean in fig.add_subplot(111)?
- No module named ‘psycopg2’
- How can I plot a confusion matrix? [duplicate]
- Unable to plot Double Bar, Bar plot using pyplot for ndarray
- How to pip or easy_install tkinter on Windows
- matplotlib error – no module named tkinter
- Conda uninstall one package and one package only
- Cannot find module cv2 when using OpenCV
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- ImportError: numpy.core.multiarray failed to import
- ImportError: DLL load failed: %1 is not a valid Win32 application. But the DLL’s are there
- Error after upgrading pip: cannot import name ‘main’
- filename.whl is not supported wheel on this platform
- pandas DataFrame “no numeric data to plot” error
- How to change the font size on a matplotlib plot
- How do I install Python OpenCV through Conda?
- ImportError: cannot import name main when running pip –version command in windows7 32 bit
- filename.whl is not a supported wheel on this platform
- What is the difference between pip and conda?
- bash: pip: command not found
- How do you change the size of figures drawn with Matplotlib?
- How do I set the figure title and axes labels font size in Matplotlib?
- How to know the version of pip itself
- How to customize a scatter matrix to see all titles?
- Is there a list of line styles in matplotlib?
- Matplotlib automatic legend outside plot
- Add Legend to Seaborn point plot
- How to install pip3 on Windows?
- “ImportError: no module named ‘requests'” after installing with pip
- How can I upgrade NumPy?
- How can one display an image using cv2 in Python
- Matplotlib automatic legend outside plot
- Changing the “tick frequency” on x or y axis in matplotlib?
- How do I install the yaml package for Python?
- matplotlib error – no module named tkinter
- Plotting multiple different plots in one figure using Seaborn
- Plot pie chart and table of pandas dataframe
- Change figure size and figure format in matplotlib
- Add Legend to Seaborn point plot
- TypeError: ‘DataFrame’ object is not callable
- AttributeError: Module Pip has no attribute ‘main’
- pg_config executable not found
- Can I force pip to reinstall the current version?
- How can I install Python’s pip3 on my Mac?
- Removing pip’s cache?
- setup script exited with error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
- Could not find a version that satisfies the requirement
- Improve subplot size/spacing with many subplots in matplotlib
- No module named pkg_resources
- What is the purpose of “pip install –user …”?