Microsoft Visual C++ 9.0 is required

When I want to install packages, including Jupyter, I get the error that Microsoft Visual C++ 9.0 is required. I get the same error with Pip and pre-compiled binaries on UC website. I have Visual Studio 17 express installed and I have manually added the path of vcvarsall to my environment. I also saw solution to update … Read more

ValueError: unsupported pickle protocol: 3, python2 pickle can not load the file dumped by python 3 pickle?

You should write the pickled data with a lower protocol number in Python 3. Python 3 introduced a new protocol with the number 3 (and uses it as default), so switch back to a value of 2 which can be read by Python 2. Check the protocolparameter in pickle.dump. Your resulting code will look like this. There is no protocolparameter in pickle.load because pickle can determine … Read more

ValueError: unsupported pickle protocol: 3, python2 pickle can not load the file dumped by python 3 pickle?

You should write the pickled data with a lower protocol number in Python 3. Python 3 introduced a new protocol with the number 3 (and uses it as default), so switch back to a value of 2 which can be read by Python 2. Check the protocolparameter in pickle.dump. Your resulting code will look like this. There is no protocolparameter in pickle.load because pickle can determine … Read more

Python string from list comprehension

You need to join your string like this: UPDATE I didn’t initially have the ‘,’.join(map(str, x)) section in there to turn each tuple into strings. This handles varying length tuples, but if you will always have exactly 2 numbers, you might see gatto’s comment below. The explanation of what’s going on is that we make a list … Read more