Python Pip install Error: Unable to find vcvarsall.bat. Tried all solutions

I tried to install Scrapy for Python 2.7.8 (anaconda 2.1.0) 32-bit using pip install scrapy And I got this error error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat). I have followed the solutions found in these stackover flow questions. Nothing worked. Microsoft Visual C++ Compiler for Python 2.7 Can’t find vcvarsall.bat file … Read more

Python 3 print() function with Farsi/Arabic characters

I simplified my code for better understanding. here is the problem : case 1: # -*- coding: utf-8 -*- text = "چرا کار نمیکنی؟" # also using u"…." results the same print(text) output: UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-2: character maps to <undefined> case 2: text = "چرا کار نمیکنی؟".encode("utf-8") print(text) there … Read more