Python3 之操作主流資料庫MySQL/MongoDB
課程簡介
教大家使用PyMySQL,SQLAlchemy,PyMongoDB, MongoEngine等知名Python 程式庫
(more…)
View On WordPress
seen from China
seen from United States

seen from Nigeria
seen from China

seen from United States
seen from Yemen
seen from United States

seen from Türkiye
seen from Yemen

seen from Türkiye
seen from South Africa

seen from Malaysia
seen from Poland

seen from Japan
seen from China

seen from Poland

seen from United States
seen from China
seen from China

seen from Australia
Python3 之操作主流資料庫MySQL/MongoDB
課程簡介
教大家使用PyMySQL,SQLAlchemy,PyMongoDB, MongoEngine等知名Python 程式庫
(more…)
View On WordPress
Fix "Unable to find vcvarsall.bat" on Windows
I found the answer to resolve it from Stackoverflow, here is how to Fix it:
For Windows installations:
While running setup.py for package installations Python 2.7 searches for an installed Visual Studio 2008. You can trick Python to use a newer Visual Studio by setting the correct path in VS90COMNTOOLS environment variable before calling setup.py.
If you have Visual Studio 2010 installed, execute
SET VS90COMNTOOLS=%VS100COMNTOOLS%
or with Visual Studio 2012 installed
SET VS90COMNTOOLS=%VS110COMNTOOLS%
Another way to resolve this problem
I found the solution. I had the exact same problem, and error, installing 'amara'. I had mingw32 installed, but distutils needed to be configured.
I have Python 2.6 that was already installed.
I installed mingw32 toC:\programs\mingw\
Add mingw32's bin directory to your environment variable: appendc:\programs\MinGW\bin;to thePATH
Edit (create if not existing)distutils.cfgfile located atC:\Python26\Lib\distutils\distutils.cfgto be:
[build] compiler=mingw32
Now runeasy_install.exe amara.
Make sure environment is set by opening a newcmd.exe.
Link
Setting up Django with Mysql on Mac OS X Lion
Three days and I finally were able to set it up on my mac. I tried tons different ways, installed tons different versions of everything, almost gave up and went to take a drink with a good friend of mine somewhere in the Cobble Hill, Brooklyn.
virtualenv: Getting error when installing python-mysql
Here's a possible way on fixing the error you encounter when installing python-mysql inside the virtualenv.
Error:
... metadata, options = get_config()
File "setup_posix.py", line 43, in get_config
libs = mysql_config("libs_r")
File "setup_posix.py", line 24, in mysql_config
raise EnvironmentError("%s not found" % (mysql_config.path,))
EnvironmentError: mysql_config not found
Solution:
(Install the following packages)
sudo apt-get install python-mysqldb
sudo apt-get install libmysqlclient16
sudo apt-get install libmysqlclient-dev