A few weeks ago I found an article showing me how to create discreet graphs out of large data sets. I downloaded 2 files; one a tgz file and the other text for what might be further terminal commands. Next I was asked to type the following commands into the terminal:
I advise you do read the documentation, before installing from an external source.
Be cautious if you are using a Python install that is managed by your operating system or another package manager. get-pip.py does not coordinate with those tools, and may leave your system in an inconsistent state.
I didn’t expect such a prompt response! Yeah, I was dimly aware that the system needs its own versions of Python and that it’s not a good idea to screw around. I always planned to use Timeshift to revert Python to its original state.
What happens when you type “python --version” and/or “python3 --version”
does it say something like …
Which is your default ?
If you need to type 3 to get python3 2.7 is your default
type “python” the version is on the top line, to exit ‘ctrl’+‘d’
This shows the order of execution mine is 2.7 first
BUT If you want to install/run on python3 you can use pip3 which ensures the library only installs and is available to python3
That turned out to be the case exactly. In each case I did actually install pip–just not pip3. Late last night I found I’m running Python 2.7.12. I then opened Synaptic to see what clusters around pip and saw “python3 pip”, and installed it from there. Once done, matplotlib and numpy 1.12.1 installed easily from the terminal.
Once I know I can consistently launch this program I’ll revert to my proper version of pip.
I’d love to say that that settles everything, but I hit a further snag while trying to install the program. after downloading a tgz file and placing it in home, I entered the command:
The first command seems to work, but it doesn’t like the second.
dave@dave-BT434AAR-ABA-s5603w ~ $ cd GHCNPY
dave@dave-BT434AAR-ABA-s5603w ~/GHCNPY $ #!/bin/tcsh
dave@dave-BT434AAR-ABA-s5603w ~/GHCNPY $ make
make: *** No targets specified and no makefile found. Stop.
This isn’t just a text file, it is a script. From the first line you see that it requires tcsh which is normal for BSD-like systems, but far from normal in Debian derivatives. That said, you could change the first line from #!/bin/tcsh to #!/bin/bash, because the rest of the commands seem to be available in our shell, as well. So much for the theory. In practice, this means that your tutorial is not for Ubuntu systems or at least this script isn’t. So even if this script alone works, it may be that the other things you already did, won’t work, if they are specifically explaining how it should work on a BSD-like system and not Ubuntu.
As for the pip version: if you download pip, you already have both versions. You select the correct version by typing python3 -m pip, which you already did in the first place, so you wouldn’t need to worry about this.
Actually what I’ve been doing is restoring python to it’s original state with Timeshift. So each time I’m starting fresh. Once I’ve worked out a procedure I plan to erase all traces of it and run the plots from another machine.
But thank you for your concern and your knowledge.
Anything you can run normally on the command line can be put into a script and it will do exactly the same thing. Similarly, anything you can put into a script can also be run normally on the command line and it will do exactly the same thing.
Except the first line that always starts with #!.
It failed at make, because it wasn’t executed in the correct directory. The tutorial has to tell you which directory it has to be executed in.
Thanks for your help so far. I’m going to see if I can contact the author! If I run it all as a script it skips over the “make” command and offers possible commands, but it does execute the rest of the script, except the final one. I think the directories aren’t set up properly.
make needs a file with a name like makefile to tell it what to compile and possibly download and install
which would be platform specific also
Normally a developer provides some form of readme to give some hints/steps on installing the code
It’s designed to under windows were you expecting that ?