gpt4 book ai didi

python - 使用 pip 和 easy_install 将 MySQL-python 安装到 virtualenv 时出现注册表错误

转载 作者:行者123 更新时间:2023-11-28 20:28:21 25 4
gpt4 key购买 nike

pip 和 easy install 命令(安装 MySQL-python)提供了下面列出的大量错误。

我一直在这个网站上和通过谷歌四处寻找答案。反复出现的答案是安装 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

最佳答案

尝试 ActivePython :

pypm -E C:\virtualenvs\myvirtualenv2 install mysql-python

no compile orgy. no strange errors. no terror.

关于python - 使用 pip 和 easy_install 将 MySQL-python 安装到 virtualenv 时出现注册表错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5652027/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com