Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error installing package with pip

I'm trying to install a charting tool (matplotlib-v1.4.2) for python 3.4 in Windows 7, so far all my trails doesn't seem to do the job.

Attempts:

  • I've downloaded pip from GitHub
  • python -m pip install matplotlib on Command Prompt[DOS] - No Use

There's a similar question posted here, tried these suggestions too but I get the following error

'$' is not reconginized as an internal or external command.

I'm sure I'm missing something, your step by step guidance on this regard would be much appreciated.

like image 244
SanVEE Avatar asked Nov 20 '14 13:11

SanVEE


People also ask

Why is pip not working Mac?

Sometimes when you are installing packages, you might face the error: pip: command not found . This error could be due to the following reasons: Pip is not installed. Pip is installed, but it is not compatible with the current environment.

Why pip install module not found?

The Python "ModuleNotFoundError: No module named 'pip'" occurs when pip is not installed in our Python environment. To solve the error, install the module by running the python -m ensurepip --upgrade command on Linux or MacOS or py -m ensurepip --upgrade on Windows.


1 Answers

The $ refers to the beginning of a shell prompt, you shouldn't actually include it in your command :)

So rather than (from the example question you posted)

$ pip install requests

you actually type

pip install requests

In any case, you can download matplotlib .exe files from here for use in Windows. Make sure you get the correct bitness (32bit vs 64bit) and the correct Python version.

like image 132
Ffisegydd Avatar answered Sep 21 '22 15:09

Ffisegydd