Fix Python – bash: mkvirtualenv: command not found

After following the instructions on Doug Hellman’s virtualenvwrapper post, I still could not fire up a test environment.
[mpenning@tsunami ~]$ mkvirtualenv test
-bash: mkvirtualenv: command not found
[mpenning@tsunami ~]$

It should be noted that I’m using WORKON_HOME that is not in my $HOME. I tried looking for /usr/local/bin/virtualenvwrapper.s….

Fix Python – Call Python script from bash with argument

I know that I can run a python script from my bash script using the following:

But what about if I wanted to pass a variable / argument to my python script from my bash script. How can I do that?
Basically bash will work out a filename and then python will upload it, but I need to send the filename from bash to python when….

Fix Python – Running bash script from within python

I have a problem with the following code:
import subprocess
print “start”“”)
print “end”
sleep 10

I want the “end” to be printed after 10s. (I know that this is a dumb example, I could simply sleep within python, but this simple file was just as a test)

Fix Python – How to run Conda?

I installed Anaconda and can run Python, so I assume that I installed it correctly. Following this introductory documentation, I am trying to install Python v3.3, so I am copying and pasting the following line into my console:
conda create -n py33 python=3.3 anaconda

However, that gives me an error:

-bash: conda: command not found

What do I nee….

Fix Python – standard_init_linux.go:178: exec user process caused “exec format error”

docker started throwing this error:

standard_init_linux.go:178: exec user process caused “exec format error”

whenever I run a specific docker container with CMD or ENTRYPOINT, with no regard to any changes to the file other then removing CMD or ENTRYPOINT. here is the docker file I have been working with which worked perfectly until about an hou….