[Tutor] Using pip

Alan Gauld alan.gauld at yahoo.co.uk
Thu Jul 5 13:08:38 EDT 2018


On 05/07/18 17:03, Hlavin, Matthew (GSFC-5460)[GSFC INTERNS] wrote:
> install the library using the line:
> $ pip install -U pyvisa
> When I type this line, I get a syntax error

The most common reason is that you are trying to type it
at the Python >>> prompt.
It should be typed at the OS prompt.
The $ is the traditional *nix prompt.
In Windows it will be something like

C:\WINDOWS>

It's not at all obvious that pip is an OS level tool, they
need to improve/clarify the docs to make that clear - as
does every site that uses pip! Its a very common error.

HTH
-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos




More information about the Tutor mailing list