python27pip安装
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")