-
Install Mysql Module Php Windows Binary카테고리 없음 2020. 2. 17. 22:30
I've spent hours trying to make Django work on my computer. The problem is that I can't install the mysql-python package. I'm running Windows 7 64bit. This is what I've tried:. I have downloaded easyinstall.
I have downloaded Cygwin64 to be able to run Linux commands (Win cmd was driving me crazy). I have typed in: easyinstall mysql-python (gave me an error message saying it can't find vcvarsall.bat). I have downloaded Visual Studio 2010.
However, I uninstalled it since I found out that I had some other version of it already (it didn't solve the problem)I have googled this problem like a thousand times, so I would be very grateful if someone could help me. Thanks in advance!EDIT: I discovered this:. Does this mean I can't run Django with python 3.3? And why bother to go through all this work if there is an.exe-file out there? You're going to want to add Python to your Path Environment Variable in this way. Go to:.
Php Mysql Install
My Computer. System Properties. Advance System Settings. Under the 'Advanced' tab click the button that says 'Environment Variables'.
Then under System Variables you are going to want to add / change the following variables: PYTHONPATH and Path. Here is a paste of what my variables look like:PYTHONPATH C:Python27;C:Python27Libsite-packages;C:Python27Lib;C:Python27DLLs;C:Python27Liblib-tk;C:Python27ScriptsPath C:Program FilesMySQLMySQL Utilities 1.3.5;C:Python27;C:Python27Libsite-packages;C:Python27Lib;C:Python27DLLs;C:Python27Liblib-tk;C:Python27ScriptsYour Path's might be different, so please adjust them, but this configuration works for me and you should be able to run MySQL after making these changes. Thank you for your answer. I didn't have a system variable called PYTHONPATH, but I created one and added what you suggested. I did the same thing with the Path-variable.
I have checked that all paths exist on my computer. They all do, except for this one: C:Python33Liblib-tk. Can't find it.
However, I ignored that and restarted my computer. I then tried both 'easyinstall mysql-python' and 'pip install mysql-python'. They both generated the same error message about not finding vcvarsall.bat.–Jan 30 '14 at 9:25. I'm pretty sure the OP's problem is that pip install mysqlclient was throwing a bunch of errors. I went through the same thing with VS 2015 and it took me like 5 hours to find the root cause, which was a variety of things, which included needing to update setuptools, update easyinstall, update pip, install wheel, and install c2010 and change the path of my virtual env to a shorter length.
Then i found installying a lower version of mysqlclient works in a different env so it was crazy–Feb 6 '17 at 17:09. I have a slightly different setup, but think my solution will help you out.I have a Windows 8 Machine, Python 2.7 installed and running my stuff through eclipse.Some Background:When I did an easy install it tries to install MySQL-python 1.2.5 which failed with an error: Unable to find vcvarsall.bat.
I did an easyinstall of pip and tried the pip install which also failed with a similar error. They both reference vcvarsall.bat which is something to do with visual studio, since I don't have visual studio on my machine, it left me looking for a different solution, which I share below.The Solution:. Reinstall python 2.7.8 from 2.7.8 from this will add any missing registry settings, which is required by the next install. Install 1.2.4 fromAfter I did both of those installs I was able to query my MySQL db through eclipse.