I installed Anaconda3 on Windows 7, but when I wanted to pass a command-line argument to a script, the script didn’t receive the parameter(s). The command-line arguments were simply ignored.
I found the solution here. This is a blog post from 2010. This issue is still unresolved…
In short: open the registry editor (regedit), find the key
HKEY_CLASSES_ROOT\py_auto_file\shell\open\command , and append the string “
%*” (without quotes) to the end of the entry. It should look similar to this:
"C:\Anaconda3\python.exe" "%1" %*
I tried the Anaconda Python distribution under Manjaro, but there was a problem with the “readline” module:
>>> import readline Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: libncursesw.so.5: cannot open shared object file: No such file or directory
# cd /usr/lib # ln -s libncursesw.so libncursesw.so.5
It may be an ugly hack, but it solved the issue for me.
“Completely free enterprise-ready Python distribution for large-scale data processing, predictive analytics, and scientific computing.”
It has the advantage that it installs everything in a specified directory. Say you need to use a machine where you don’t have root permission and/or this machine has an old Python version. Just install Anaconda and use the latest Python version it is shipped with.
I had Anaconda 2.3 and 2.5 came out a few days ago. How to upgrade to the new distribution?
$ conda update --all $ conda install anaconda=2.5 $ conda update --all