error: Unable to find vcvarsall.bat

Update: Comments point out that the instructions here may be dangerous. Consider using the Visual C++ 2008 Express edition or the purpose-built Microsoft Visual C++ Compiler for Python (details) and NOT using the original answer below. Original error message means the required version of Visual C++ is not installed. For Windows installations: While running setup.py … Read more

pip install mysql-python fails with EnvironmentError: mysql_config not found

It seems mysql_config is missing on your system or the installer could not find it. Be sure mysql_config is really installed. For example on Debian/Ubuntu you must install the package: sudo apt-get install libmysqlclient-dev Maybe the mysql_config is not in your path, it will be the case when you compile by yourself the mysql suite. … Read more

Why use pip over easy_install?

From Ian Bicking’s own introduction to pip: pip was originally written to improve on easy_install in the following ways All packages are downloaded before installation. Partially-completed installation doesn’t occur as a result. Care is taken to present useful output on the console. The reasons for actions are kept track of. For instance, if a package … Read more

What is the difference between pip and conda?

Quoting from the Conda blog: Having been involved in the python world for so long, we are all aware of pip, easy_install, and virtualenv, but these tools did not meet all of our specific requirements. The main problem is that they are focused around Python, neglecting non-Python library dependencies, such as HDF5, MKL, LLVM, etc., … Read more

What is the easiest way to remove all packages installed by pip?

I’ve found this snippet as an alternative solution. It’s a more graceful removal of libraries than remaking the virtualenv: pip freeze | xargs pip uninstall -y In case you have packages installed via VCS, you need to exclude those lines and remove the packages manually (elevated from the comments below): pip freeze | grep -v … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)