CPSuperstore
CPSuperstore

Reputation: 653

Windows 10 Pip No Output

I have installed pip on my Windows 10 laptop the same way I have been doing for the past few years (via python -m pip install -U pip setuptools). The weird part is, on my laptop, Pip causes no output. It just causes a blank line. For example

C:\Users\...> pip install hvjkdfghfdkghdkgf

C:\Users\...>

When it should throw an error that the module hvjkdfghfdkghdkgf does not exist.

I have read that you must edit the configuration file, but when I checked where the configuration file should be, there was none to be found. I tried creating the configuration file, and there was no change (I do not remember where, as this was over a month ago, sorry).

I have tried pip install ___ -v, and pip install ___ --verbose as found on the pip website: https://packaging.python.org/tutorials/installing-packages/#install-pip-setuptools-and-wheel, and still no luck.

Thanks in advance.

[EDIT]

By the way, It still installs modules, I just want to be able to see the progress of the installation, and if the module was even found.

Upvotes: 1

Views: 4921

Answers (2)

Kevin North
Kevin North

Reputation: 312

After playing around a bit, it looks like pip just shows blank if the module does not exist. The best sanity check is to try modules that do exist. Example: Go to the correct Python folder with correct latest version. Then type:

.\python.exe -m pip install --upgrade pip
.\python.exe -m pip install --upgrade setuptools

If these commands work, they should upgrade your pip and setuptools to the latest version. THEN, if you change 'setuptools' to the library you want, e.g., 'abcdefgh', and THEN you get BLANK, it means the library doesn't exist. Check for typos, or perhaps a library that existed in Python 2 now has a new name in Python 3, etc.

Upvotes: 0

CPSuperstore
CPSuperstore

Reputation: 653

I uninstalled pip:

python -m pip uninstall pip setuptools

And then followed the instructions here: https://pip.pypa.io/en/stable/installing/#do-i-need-to-install-pip

By first downloading setup.py from https://bootstrap.pypa.io/get-pip.py, and running > python get-pip.py in the command line in the directory where the python file is saved.

Thanks anyways.

Upvotes: 5

Related Questions