[問題] Centos5 MySQLdb 與 setuptools 模組安裝失敗
大家好
Centos的預設python版本是2.4,但是我照著網路上的流程已經順利安裝python2.7了
方式為
./configure --prefix=/opt/python2.7.1 --with-threads --enable-shared
make
make install
之後也能順利進入python
$ python2.7
Python 2.7.2 (default, Feb 14 2012, 14:29:22)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-51)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> quit()
但是當我想要安裝setuptools時卻發生錯誤,google也找不到解決方法
$ sh /tmp/setuptools-0.6c11-py2.7.egg
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named setuptools.command.easy_install
不知道有人可以提供一些建議或幫助嗎(卡好幾天了QQ),萬分感謝~
(其實會安裝setuptools是為了要安裝 python MySQLdb,
所以假如有人有跳過setuptools直接安裝mysql的python library也很有幫助,謝謝~)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.198.186.130
※ 編輯: fuminfumin 來自: 114.198.186.130 (03/10 23:17)
推
03/10 23:22, , 1F
03/10 23:22, 1F
→
03/10 23:32, , 2F
03/10 23:32, 2F
→
03/10 23:33, , 3F
03/10 23:33, 3F
→
03/11 16:32, , 4F
03/11 16:32, 4F
推
03/11 18:45, , 5F
03/11 18:45, 5F
→
03/11 18:46, , 6F
03/11 18:46, 6F
→
03/11 18:49, , 7F
03/11 18:49, 7F
推
03/11 18:58, , 8F
03/11 18:58, 8F
Python 近期熱門文章
PTT數位生活區 即時熱門文章