python下載包的時候,如何選擇是win32,還是amd64的,其中的cp又是什么意思?
: python cp35 win32 amd64
版權
一、對於系統cpu的架構辨別。不管是32位的Windows還是64位的,都是運行在NT內核之上的Win32子系統。Win32既包括32位的Windows又包括64位的Windows。
32位的Windows,叫Win32-i386。i386也可叫做i686或者x86。
通常所說的64位的Windows,叫Win32-x86_64,x86_64也可叫做AMD64或者x64。雖然名字里有AMD,但是Intel的64位CPU也是這個指令集。
簡單來講:
Win32 -> 指的就是Windows系統;
64 bit- > 指的是Windows是64位的;
AMD64 -> 指的就是 CPU是x64的
如何確定安裝win32的還是amd64,非常簡單!
我們直接通過platform看我們安裝的python是什么版本,32bit就是win32了。而且自己在dos輸入python的一開始的命令提示也顯示了
在這里插入圖片描述
二、對於包名完整的理解
0.12.4 - package version, they may be using semantic versioning
cp27 - this package is for CPython. IronPython, Jython, or PyPy will probably be unhappy.
CPython version 2.7.
none - no feature of this package depends on the python Application Binary Interface, or ABI
win_amd64 - this has been compiled for 64-bit Windows. That means that it probably has some code written in C/C++
.whl - that means this is a wheel distribution. Which is handy, because it means if you’re running CPython 2.7 64-bit on Windows, and assuming you have pip installed, all you have to do to get this package is run: py -2.7 -m pip install –use-wheel gensim (assuming that it’s available on pypi, of course). You may need to py -2.7 -m pip install wheel first. But other than that, that should be all it takes.
在gensim-0.12.4-cp27-none-win_amd64.whl中你可以將它分開:
0.12.4 – 包版本,他們可能正在使用semantic versioning
cp27 – 此軟件包適用於CPython. IronPython,Jython或PyPy可能會不高興.
none – 此軟件包的功能取決於python Application Binary Interface, or ABI
win_amd64 – 這是為64位Windows編譯的.這意味着它可能有一些用C/C++編寫的代碼
.whl – 這意味着這是一個車輪分配.這很方便,因為這意味着如果你在Windows上運行CPython 2.7 64位,並假設你已經安裝了pip,那么你需要做的就是運行這個軟件包:py -2.7 -m pip install –use- wheel gensim(假設它在pypi上可用,當然).你可能需要先py -2.7 -m pip安裝輪.但除此之外,應該只需要它.
————————————————
版權聲明:本文為CSDN博主「~銀開~」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/qq_35889860/article/details/103269569