1.whl檔案相容性很差,同一檔案分版本
可在pythonide中輸入
import pip;
print(pip.pep425tags.get_supported())
(pip 10沒有pep425tags()這個屬性,可以考慮使用,python -m pip install --upgrade pip==9.0.3回退)
檢視可以獲取到pip支援的檔名還有版本
在我的機器下輸出
[('cp36', 'cp36m', 'win_amd64'), ('cp36', 'none','win_amd64'), ('py3', 'none', 'win_amd64'), ('cp36', 'none', 'any'), ('cp3','none', 'any'), ('py36', 'none', 'any'), ('py3', 'none', 'any'), ('py35','none', 'any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32','none', 'any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
whl檔案大集合**:
然後在命令列下進入whl檔案所在目錄,
pip install ***.whl
2.在安裝wxpython.whl的時候還發現,
[('cp35', 'none', 'win_amd64'), ('py3', 'none','win_amd64'), ('cp35', 'none', 'any'), ('cp3', 'none', 'any'), ('cp34', 'none','any'), ('cp33', 'none', 'any'), ('cp32', 'none', 'any'), ('cp31', 'none','any'), ('cp30', 'none', 'any'), ('py35', 'none', 'any'), ('py3', 'none','any'), ('py34', 'none', 'any'), ('py33', 'none', 'any'), ('py32', 'none','any'), ('py31', 'none', 'any'), ('py30', 'none', 'any')]
根本沒有符合上述版本的wxpython.whl
因為這是pip 7,需要python -m pip install --upgradepip==9.0.3 到pip9,總而言之,pip9是最好的!!!
3.pip/python安裝路徑最好不要有中文,如果有的話,使用pip命令可能會顯示編碼錯誤,而python3又沒有setdefaultencoding()方法,罷了罷了,不用中文
python安裝whl檔案
第一步 這當然是預設的一步,首先你有了要安裝的.whl檔案,這裡有個 常見的.whl大致都能找到。第二步 在cmd模式下,進入包含要安裝的.whl檔案的資料夾,然後輸入pip install whl 這樣pip就自動幫你安裝了,一般安裝的檔案名字都很長,只要輸入 前幾個字母,然後按table鍵,cm...
python安裝whl檔案
1.安裝wheel庫 pip install wheel 本地安裝 2.安裝whl檔案 安裝完wheel後,1 如果已將 python27 scripts目錄新增到path中,可以直接在whl檔案所在目錄用管理員開啟乙個cmd視窗,直接執行下面的語句 pip install python dateu...
python安裝 whl檔案
先判斷要安裝的whl檔案所對應的python版本 判斷如下 scikit learn 0.19.1 cp27 cp27m win32.whl 這個檔案cp27 表示對應的時 python2.7 win32 指的時python為32 位的再比如 scikit learn 0.19.1 cp37 cp3...