使用pip和easy_install将MySQL-python安装到virtualenv中时发生注册表错误
||
pip和easy install命令(安装MySQL-python)提供下面列出的大量错误。
我已经在这个网站和Google上寻找答案了一段时间。重复出现的答案是安装python dev(pip install python-dev),但是我收到的响应是“找不到任何发行版”
有人知道这样做的正确语法吗?还是有人可以指出我要去哪里错了。
非常感谢所有帮助。谢谢
C:\\virtualenvs\\myvirtualenv2\\Scripts\\pip-script.py run on 04/13/11 16:28:18
Downloading/unpacking mySQL-python
Running setup.py egg_info for package mySQL-python
Traceback (most recent call last):
File \"<string>\", line 14, in <module>
File \"C:\\virtualenvs\\myvirtualenv2\\build\\mySQL-python\\setup.py\", line 15, in <module>
metadata, options = get_config()
File \"setup_windows.py\", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options[\'registry_key\'])
WindowsError: [Error 2] The system cannot find the file specified
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File \"<string>\", line 14, in <module>
File \"C:\\virtualenvs\\myvirtualenv2\\build\\mySQL-python\\setup.py\", line 15, in <module>
metadata, options = get_config()
File \"setup_windows.py\", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options[\'registry_key\'])
WindowsError: [Error 2] The system cannot find the file specified
----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
File \"C:\\virtualenvs\\myvirtualenv2\\lib\\site-packages\\pip-1.0-py2.6.egg\\pip\\basecommand.py\", line 126, in main
self.run(options, args)
File \"C:\\virtualenvs\\myvirtualenv2\\lib\\site-packages\\pip-1.0-py2.6.egg\\pip\\commands\\install.py\", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File \"C:\\virtualenvs\\myvirtualenv2\\lib\\site-packages\\pip-1.0-py2.6.egg\\pip\\req.py\", line 980, in prepare_files
req_to_install.run_egg_info()
File \"C:\\virtualenvs\\myvirtualenv2\\lib\\site-packages\\pip-1.0-py2.6.egg\\pip\\req.py\", line 216, in run_egg_info
command_desc=\'python setup.py egg_info\')
File \"C:\\virtualenvs\\myvirtualenv2\\lib\\site-packages\\pip-1.0-py2.6.egg\\pip\\__init__.py\", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1
没有找到相关结果
已邀请:
2 个回复
郸身
没有编译狂欢。没有奇怪的错误。没有恐怖。
了驳
在
>
中运行
并验证MySQL的正确路径,我的样子像
取消注释线
设置它:
在您的virtualenv下运行