Skip to content
Advertisement

Tag: python

Issue with installing Python 2.7.8 alongside 2.7.5 on RHEL 7.2

I have an Amazon EC2 instance with Red Hat Linux 7.2 installed. It comes with Python 2.7.5 installed system wide. I’ve compiled an alternative installation of Python 2.7.8 (which is what I use in another environment that I’m trying to replicate). I will use this to create a virtualenv to launch my Django application. But invoking python2.7 always takes me

find indices of duplicate floats in a list

I have an input of a very large list of floating point numbers, a sample is given I want to find all the duplicates and their index i.e. location in the list. The duplicates will only occur as a pair; never more than twice. The output should be like so there are just two entries 1.2 and 3.1 which occur

Crontab Entry Causing Unknown Command

The entry Is causing the following error: My script has the shebang at the top: I think the python3 path is correct: As suggested, I looked for a CR but none found: What should I try? Thanks Answer Make sure the end-of-line does not contains Carriage return, but only new line. If there’s carriage return, the characters is also considered

Advertisement