Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python之Pycharm配置 #1

Open
linzhenyuyuchen opened this issue Nov 5, 2018 · 2 comments
Open

Python之Pycharm配置 #1

linzhenyuyuchen opened this issue Nov 5, 2018 · 2 comments

Comments

@linzhenyuyuchen
Copy link
Owner

linzhenyuyuchen commented Nov 5, 2018

Python之Pycharm连接mysql一系列问题

https://blog.csdn.net/LINZHENYU1996/article/details/79307452

1.Python 2.7.15
下载地址:https://www.python.org/downloads/release/python-2715/
2. MySQL-python 1.2.5
32位下载地址 https://pypi.org/project/MySQL-python/#files
32位&64位下载地址:https://www.codegood.com/downloads
3.PyMySQL
下载地址 https://pypi.org/project/PyMySQL/#files
安装步骤 在程序目录下运行命令python setup.py install

@linzhenyuyuchen
Copy link
Owner Author

安装MySQL-python-1.2.5.win32-py2.7.exe的时候出现 Python Version 2.7 required which was not found in the registry 问题解决方法
Python的一些第三方库只到注册表的HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath路径下寻找Python。但是装好的64位Python在HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath路径下建立Python的信息。所以,在cmd输入regedit然后将HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.7\InstallPath路径下的值,复制到HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Python\PythonCore\2.7\InstallPath路径下,当然没有路径的话一定要新建起来。

@linzhenyuyuchen
Copy link
Owner Author

pycharm 安装MySQL-Python出错
提示:error: Microsoft Visual C++ 9.0 is required
解决方法:
下载安装 Microsoft Visual C++ Compiler for Python 2.7
https://www.microsoft.com/en-us/download/confirmation.aspx?id=44266

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant