Snippets tagged “pip”
33 snippets use this tag.
- 'pip' is not recognized as an internal or external commandPython
This error message typically occurs when the command prompt or terminal is not able to find the pip executable.
- "pip install unroll": "python setup.py egg_info" failed with error code 1Python
Here is an example of a command that could cause the error you described:
- Automatically create requirements.txtPython
You can use the pip freeze command to automatically generate a requirements.txt file in Python.
- Cannot find module cv2 when using OpenCVPython
The error message "Cannot find module cv2" usually indicates that the OpenCV library is not installed on your system, or that Python is unable to find the library.
- Error "Import Error: No module named numpy" on WindowsPython
This error message indicates that the Python interpreter is unable to find the numpy module, which is likely because it is not installed on your system.
- error: Unable to find vcvarsall.batPython
The error: Unable to find vcvarsall.bat message is usually raised when you are trying to install a Python package that requires a C compiler, and the compiler is not installed or cannot be found by Python.
- Find which version of package is installed with pipPython
You can use the following command to check the version of a package installed with pip:
- How can I install packages using pip according to the requirements.txt file from a local directory?Python
To install packages using pip from a local directory, you can use the -r option to specify the path to the requirements.txt file.
- How do I check the versions of Python modules?Python
You can use the built-in "pkg_resources" module to check the version of a Python module.
- How do I install a Python package with a .whl file?Python
To install a Python package with a .whl file, you can use the pip command.
- How do I install pip on macOS or OS X?Python
To install pip on macOS or OS X, you need to use the Terminal.
- How do I update/upgrade pip itself from inside my virtual environment?Python
To update pip itself from inside your virtual environment, you can use the following command:
- How do I upgrade the Python installation in Windows 10?Python
To upgrade the Python installation in Windows 10, you can use the pip package manager.
- How to install PIL with pip on Mac OS?Python
To install PIL (Python Imaging Library) using pip on Mac OS, you can use the following command in your terminal:
- How to install pip with Python 3?Python
To install pip with Python 3, you can use the following command:
- How to upgrade all Python packages with pip?Python
You can use the pip freeze command to generate a requirements file that includes all of the current packages and their versions, and then use pip install -r to upgrade all packages to the latest available versions.
- ImportError: No module named matplotlib.pyplotPython
This error message occurs when the matplotlib.pyplot module is not installed or not imported properly in your Python environment.
- ImportError: No module named PILPython
Here is a code snippet that demonstrates how to catch the "ImportError: No module named PIL" error:
- ImportError: No module named pipPython
Here is a code snippet that demonstrates how to handle the "No module named pip" error:
- ImportError: No module named requestsPython
This error message indicates that the "requests" module, which is used for making HTTP requests in Python, is not installed on your system or is not in the Python path.
- Installing specific package version with pipPython
To install a specific version of a package with pip, you can use the pip install command followed by the package name and the desired version number.
- pg_config executable not foundPython
Check the location of pg_config: Open a terminal and run the command "which pg_config".
- pip install fails with "connection error: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:598)"Python
This error message occurs when pip is unable to verify the certificate of the website it is trying to connect to.
- pip install from git repo branchPython
You can use pip to install a package from a git repository and specify a branch by using the following syntax:
- pip install mysql-python fails with EnvironmentError: mysql_config not foundPython
This error occurs when the mysql-config command is not in the system's PATH.
- pip uses incorrect cached package version, instead of the user-specified versionPython
Here is an example of how to use pip to install a specific version of a package, rather than using a cached version:
- python setup.py uninstallPython
The command python setup.py uninstall is not a built-in command in Python and it may not work as expected.
- Using Python 3 in virtualenvPython
Here is an example of how you can use Python 3 in a virtual environment using the virtualenv package:
- What is setup.py?Python
setup.py is a Python script used to build and install Python packages.
- What is the difference between pip and conda?Python
pip is the package installer for Python.
- What is the easiest way to remove all packages installed by pip?Python
The easiest way to remove all packages installed by pip is to use the command pip freeze to get a list of all installed packages, and then pipe that list to pip uninstall -y, like this:
- Why is python setup.py saying invalid command 'bdist_wheel' on Travis CI?Python
The error message "invalid command 'bdist_wheel'" occurs when the "bdist_wheel" module is not installed.
- Why use pip over easy_install?Python
Pip is generally preferred over easy_install because it offers a number of features that easy_install does not, including better package management and more user-friendly command options.