A. python27安裝不上

3.0的語法下print 要加括弧,其他人回答的沒有錯。
我在win7下安裝了2.7.2,也可以正常使用,32位的win7和64位的win7使用都沒有問題。
你再到官網上下載一次吧,注意文件大小是否正常,應該是15.2 MB (15,970,304 位元組)
官網地址附在參考資料裡面

B. python的pip怎麼安裝和使用

在win7下安裝python包工具復pip方法如制下:
1、在安裝pip前,請確認win系統中已經安裝好了python,和easy_install工具,如果系統安裝成功,easy_install在目錄C:\Python27\Scripts 下面,確認截圖如下:

2、進入命令行,然後把目錄切換到python的安裝目錄下的Script文件夾下,運行 easy_inatall pip

3、pip安裝成功後,在cmd下執行pip,將會有如下提示.

注意事項
安裝pip前,系統要已經安裝完成python和easy_install,並且設置了環境變數。

C. win7下python2.7怎麼安裝pip

在安裝pip前,請確認你win系統中已經安裝好了python,和easy_install工具,如果系統安裝成功,easy_install在目錄C:\Python27\Scripts 下面,
確認截圖如下:

進入命令行,然後把目錄切換到python的安裝目錄下的Script文件夾下,運行 easy_inatall pip

pip安裝成功後,在cmd下執行pip,將會有如下提示.

注意事項
安裝pip前,系統要已經安裝完成python和easy_install,並且設置了環境變數。

D. 如何使用python 2.7.10 內置pip安裝package

python使用內置的pip安裝package很簡單,以WINDOWS下使用為例說明,使用命令pip install 包名即可。
1、在命令行下切換到python目錄,一般為c:\python27,pip在python安裝目錄的Scripts目錄下,命令如下:
cd c:\python27\scripts
2、切換到目錄之後直接使用命令安裝即可,命令如下,例如要安裝flask,則使用:
pip insatll flask
3、其它說明,如果卸載包則使用pip uninstall 包名 來卸載包,以下為pip參數說明:
Usage:
pip <command> [options]

Commands:
install Install packages.
download Download packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format.
list List installed packages.
show Show information about installed packages.
search Search PyPI for packages.
wheel Build wheels from your requirements.
hash Compute hashes of package archives.
completion A helper command used for command completion
help Show help for commands.

General Options:
-h, --help Show help.
--isolated Run pip in an isolated mode, ignoring
environment variables and user configuration.
-v, --verbose Give more output. Option is additive, and can be
used up to 3 times.
-V, --version Show version and exit.
-q, --quiet Give less output.
--log <path> Path to a verbose appending log.
--proxy <proxy> Specify a proxy in the form
[user:passwd@]proxy.server:port.
--retries <retries> Maximum number of retries each connection should
attempt (default 5 times).
--timeout <sec> Set the socket timeout (default 15 seconds).
--exists-action <action> Default action when a path already exists:
(s)witch, (i)gnore, (w)ipe, (b)ackup.
--trusted-host <hostname> Mark this host as trusted, even though it does
not have valid or any HTTPS.
--cert <path> Path to alternate CA bundle.
--client-cert <path> Path to SSL client certificate, a single file
containing the private key and the certificate
in PEM format.
--cache-dir <dir> Store the cache data in <dir>.
--no-cache-dir Disable the cache.
--disable-pip-version-check
Don't periodically check PyPI to determine
whether a new version of pip is available for
download. Implied with --no-index.
4、注意事項,如果在windows下安裝失敗提示:Unable to find vcvarsall.bat,則說明這個包需要編譯,則要在WINDOWS系統中安裝visual studio 2008。
5、linux下pip安裝package與WINDOWS的語法相同,使用pip install SomePackage
即可,linux下需要注意的是許可權問題,應當使用root用戶執行命令。

E. 安裝了python後怎麼安裝pip

1.安裝了python2.7之後的版本貌似已經自動集成了pip
在環境變數中添加python,script路徑,例如:C:Python27;C:Python27Scripts;
2.如果沒有集成可以下載get-pip.py運行安裝
安裝pip
安裝和升級之前,先下載get-pip.py
然後使用下面的命令:
pythonget-pip.py
不過注意一下,linux或osX下,需要許可權,使用下面的命令,輸入密碼後即可。
sudopythonget-pip.py
windows下需要管理員許可權啟動終端。
如果你還沒有安裝了setuptools,get-pip.py會幫你安裝。
如果你已經安裝了setuptools,運行下面的命令進行升級。
pipinstall-Usetuptools
windows下,注意將pip路勁加到系統的path中,原因就不解釋了吧。
升級pip
LinuxorOSX系統,運行下面的命令:
pipinstall-Upip
windows系統運行下面的命令:
python-mpipinstall-Upip

F. 如何使用python安裝pip

工具:win7系統電腦一抄台襲
步驟:
1、打開win7系統電腦,進入命令行,然後把目錄切換到python的安裝目錄下的Script文件夾下,運行
easy_inatall
pip。
2、pip安裝成功後,在cmd下執行pip,將會有如下提示。
註:在安裝pip前,確認win7系統中已經安裝好了python,和easy_install工具,如果系統安裝成功,easy_install在目錄C:\Python27\Scripts
下面。

G. 如何使pip安裝python本地資源

pipinstallpackagename

packagename為你所要安裝的庫的名稱!

例:

C:UsersCosmo>pipinstallxlwt
Collectingxlwt
D:developmentpython27libsite-packagespip-9.0.1-py2.7.eggpip\_vendor equestspackagesurllib3utilssl_.py:318:SNIMissingWarning:AnHTTPSrequesthasbeenmade,buttheSNI(SubjectNameIndication)exte
.,..
Formoreinformation,seehttps://urllib3.readthedocs.io/en/latest/security.html#snimissingwarning.
SNIMissingWarning
D:developmentpython27libsite-packagespip-9.0.1-py2.7.eggpip\_vendor equestspackagesurllib3utilssl_.py:122:InsecurePlatformWarning:.Thispreventsurllib3fro
..Formoreinformation,seehttps://urllib3.readthedocs.io/en/latest/secur
ity.html#insecureplatformwarning.
InsecurePlatformWarning
Downloadingxlwt-1.2.0-py2.py3-none-any.whl(99kB)
100%|████████████████████████████████|102kB141kB/s
Installingcollectedpackages:xlwt
Successfullyinstalledxlwt-1.2.0
D:developmentpython27libsite-packagespip-9.0.1-py2.7.eggpip\_vendor equestspackagesurllib3utilssl_.py:122:InsecurePlatformWarning:.Thispreventsurllib3fro
..Formoreinformation,seehttps://urllib3.readthedocs.io/en/latest/secur
ity.html#insecureplatformwarning.
InsecurePlatformWarning
C:UsersCosmo>python
Python2.7.3(default,Apr102012,23:31:26)[MSCv.150032bit(Intel)]onwin32
Type"help","right","credits"or"license"formoreinformation.
>>>importxlwt
>>>

H. python27安裝pip設置環境變數時出現的

把python27安裝目錄下的python2復制一份為python.exe

像這樣

I. win2008下python27怎樣安裝pip

以WIN7系統為例介紹下方法:
1.在安裝pip前,請確認win系統中已經安裝好了python,和easy_install工具,如果系統安裝成功,easy_install在目錄C:\Python27\Scripts 下面,確認截圖如下:

2.進入命令行,然後把目錄切換到python的安裝目錄下的Script文件夾下,運行 easy_inatall pip。

3.pip安裝成功後,在cmd下執行pip,將會有如下提示。

J. python27 用pip安裝時出現錯誤 UnicodeDecodeError: 'ascii' codec can't decode

修改py源碼,添加

importsys
reload(sys)
sys.setdefaultencoding("utf-8")