Explore >> Select a destination


You are here

www.feoh.org
| | blog.nuculabs.de
9.1 parsecs away

Travel
| | Hi ?? In this short article I will show you two ways of changing Python versions on Windows. It is useful when you have installed multiple Python versions on your system and want to run a specific version from the terminal. For example, if we have the following versions installed: We can use either the Python Launcher py to run Python or the python command. Python Launcher To list installed Python versions with Python launcher we can use the py -0 command.
| | www.makeworld.space
8.6 parsecs away

Travel
| | Packaging a Python project into a standalone executable is often a struggle. Thankfully we have tools like PyInstaller to make this easier. Recently I ran into another struggle of my own, which was that it seemed impossible to "cross-compile" with PyInstaller. That is to say, run PyInstaller on one OS, and have it generate an executable for another. It was hinted at that Linux ? Windows was possible using Wine, but I couldn't find any guides on it.
| | zignar.net
7.0 parsecs away

Travel
| | Personal weblog about programming, linux, life, the universe and everything
| | emmanuelbernard.com
69.8 parsecs away

Travel
| tl;dr; using powerline and having it fail after a homebrew update? Read on. If you have tuned a bit your terminal in macOS, you might be using Powerline. It prettities your command line enough to warrant some trouble installing it. And it does it to vim status lines too. Now if you also use homebrew, every so often you see something like this when starting a new terminal window -bash: /usr/local/bin/powerline-daemon: /usr/local/opt/python/bin/python3.6: bad interpreter: No such file or directory I always fiddle with things until I get it fixed again. So here it is reported for posterity. The Python interpreter has been updated behind your back and the installed modules end up referencing the old interpreter. For powerline, here are the steps pip uninstall -y powerline-status brew update && brew upgrade python pip install powerline-status Note that I use Python 2 and not Python 3. From what I remember, I had troubles making it run properly on v3. Here is a more generic solution, courtesy of bnaecker at StackOverflow. pip list | cut -d " " -f 1 > package-list.txt # Store package names without versions pip uninstall -y $(cat package-list.txt) # Cannot use redirection brew update && brew upgrade python pip install $(cat package-list.txt) Back to work.