pip install package 時若遇到 AttributeError: _DistInfoDistribution__dep_map 時,那表示你的 pip 跟 setuptools 可能版本不合
2015-03-10
2014-08-06
pyenv, tkinter, ubuntu2.2, python3 的混亂問題解法
* 若你沒法安裝 python-dev 然後錯誤訊息類似以下
python-dev : Depends: python (= 2.7.3-0ubuntu2) but 2.7.3-0ubuntu2.2 is to be installed
它的意思是說 python-dev 是依賴 2.7.3-0ubuntu2而作的, 但是你的系統卻是2.7.3-0ubuntu2.2, 多了個 ".2". 這表示你可能曾經手動安裝過 deb package. 而這 package 並非官方 apt-get 支援版. 故最佳解法就是回復到系統原來的版本
$sudo dpkg -r python-dev
$sudo apt-get install python-dev
python-dev : Depends: python (= 2.7.3-0ubuntu2) but 2.7.3-0ubuntu2.2 is to be installed
它的意思是說 python-dev 是依賴 2.7.3-0ubuntu2而作的, 但是你的系統卻是2.7.3-0ubuntu2.2, 多了個 ".2". 這表示你可能曾經手動安裝過 deb package. 而這 package 並非官方 apt-get 支援版. 故最佳解法就是回復到系統原來的版本
$sudo dpkg -r python-dev
$sudo apt-get install python-dev
2014-07-31
centos6 下如何安裝 pyenv?
在 centos6 下要如何安裝 pyenv?
首先安裝程式開發需要用到的套件#yum install -y gcc gcc-c++ make git patch openssl-devel zlib-devel readline-devel sqlite-devel bzip2-devel
2014-07-28
cx_Freeze 安裝到 python 3.1 以後版本遇到的問題解決辦法(無廢話)
如果你安裝 cx_Freeze 遇到類似以下訊息
In file included from source/bases/Console.c:41:0:
source/bases/Common.c: In function ‘ExecuteScript’:
source/bases/Common.c:307:5: warning: passing argument 1 of ‘PyEval_EvalCode’ from incompatible pointer type [enabled by default]
2014-04-17
如何在 Centos 6 下安裝 Python3.4
Centos6 內建的 Python 是 2.6.6 版
如果你將內建的 Python upgrade 成 python 2.7 或以上版本, 那麼你將會遇到毀滅性的災難 (在 Ubuntu 內移除 python 也是相同的情況)
這是因為 Centos 6 的 image 內建工具許多都是使用 Python 2.6 來運作, 一旦沒有 python 2.6, Centos 6 連最基本的 yum 都動不了
以下將教你如何安裝 python 3.4 於 Centos6 而不會覆蓋影響到原來的 python2.6.6. 也就是 python 3.4 和 python 2.6 並存於 Centos6 (雖以 python 3.4 為例, 不過其它 python 版本均同 )
如果你將內建的 Python upgrade 成 python 2.7 或以上版本, 那麼你將會遇到毀滅性的災難 (在 Ubuntu 內移除 python 也是相同的情況)
這是因為 Centos 6 的 image 內建工具許多都是使用 Python 2.6 來運作, 一旦沒有 python 2.6, Centos 6 連最基本的 yum 都動不了
以下將教你如何安裝 python 3.4 於 Centos6 而不會覆蓋影響到原來的 python2.6.6. 也就是 python 3.4 和 python 2.6 並存於 Centos6 (雖以 python 3.4 為例, 不過其它 python 版本均同 )
訂閱:
文章 (Atom)