How to upgrade pip3?

I want to use python3.5 to develop basically, but many times when I install the module for the python 3.5, it always failed. And the terminal told me that higher version is available, it did not work when I upgrade it.

subprocess.Popen(): OSError: [Errno 8] Exec format error in python?

Yesterday, I wrote and ran a python script which executes a shell using subprocess.Popen(command.split()) where command is string which constitutes .sh script and its argument. This script was working fine until yesterday. Today, I ran the same script and now I am continuously hitting this error. I know there are similar questions that have been asked before related to this question, but in … Read more

Pass a password to ssh in pure bash

Since there were no exact answers to my question, I made some investigation why my code doesn’t work when there are other solutions that works, and decided to post what I found to complete the subject.As it turns out: “ssh uses direct TTY access to make sure that the password is indeed issued by an … Read more

error: lvalue required as unary & operand

The address-operator & requires a variable to take the address from. The result of your cast (long)u32_Time is a temporary that does not necessarily reside in memory and therefore has no address that could be taken. So if that piece of code ever compiled somewhere it was a nonstandard compiler extension. The standard, §5.3.1,3 demands: The result of the … Read more

How to print pthread_t

This will print out a hexadecimal representation of a pthread_t, no matter what that actually is: To just print a small id for a each pthread_t something like this could be used (this time using iostreams): Depending on the platform and the actual representation of pthread_t it might here be necessary to define an operator< for pthread_t, because std::map needs an ordering on the elements:

how to find libstdc++.so.6: that contain GLIBCXX_3.4.19 for RHEL 6?

I work with a Linuxs server: (from wikipedia: Red Hat Enterprise Linux 6 was forked from Fedora 12 The kernel gcc version when trying to install Tensdorflow, I have some issue with a missing library: As you can see in my lib64/libstdc++.so.6 I don’t have GLIBCXX_3.4.19 I look with the following command: so my question where can I find the libstdc++-4.x.y-z.el6.x86_64 that contain GLIBCXX_3.4.19 and … Read more