使用 easy_install.exe 为 Django 安装 pyMySQL 时出现问题
我正在尝试为 python 安装 pyMySQL 模块,以便可以设置 Django (请参阅 this 上一个问题)。
我无法让 easy_install.exe PyMySQL-0.3-py2.6.egg
终生运行。每次我收到错误 easy_install.exe not recognize as an inside or external command...
我尝试将各种目录添加到我的系统路径中,包括:
C:\Python27\Lib\site-packages\;
C:\Python27\Scripts\;
C:\Python27\Scripts\easy_install.exe
C:\Python27\Scripts\easy_install.exe PyMySQL-0.3-py2.6.egg
我缺少什么来阻止它执行?(注意我使用的是Windows 7)
I'm trying to install the pyMySQL module for python so that I can setup Django (see this previous question).
I can't get easy_install.exe PyMySQL-0.3-py2.6.egg
to run for the life of me. Every time I get the error easy_install.exe not recognized as an internal or external command...
I've tried adding various directories to my system path including:
C:\Python27\Lib\site-packages\;
C:\Python27\Scripts\;
C:\Python27\Scripts\easy_install.exe
C:\Python27\Scripts\easy_install.exe PyMySQL-0.3-py2.6.egg
What am I missing that is keeping this from executing?(note I'm on windows 7)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您必须先安装 setuptools
[编辑]
呃,
我能想到的下一件最好的事情是 - 你是否安装了多个版本的 python?在这种情况下,setuptools 可能已安装在其他地方
You have to install setuptools first
[edit]
Uh,
The next best thing I can think of is - do you, by any chance, have more than one version of python installed? In that case setuptools might have been installed somewhere else