`
cakin24
  • 浏览: 1336111 次
  • 性别: Icon_minigender_1
  • 来自: 西安
社区版块
存档分类
最新评论

关于python扩展库若干问题FAQ

阅读更多
一、求python扩展库下载站点?
加州大学欧文分校一个实验室下属网站,有很全的Python 64位下载包,可供下载使用。
 
二、安装whl的方法?
1、将whl安装包下载到本地。
2、使用如下命令进行安装。
Python -m pip install --user pygame-1.9.2b8-cp36-cp36m-win_amd64.whl
Python -m pip install --user rsa-3.4.2-py2.py3-none-any.whl
 
三 怎样安装pip?
1、到Python的官网上去下载pip。
2、下载地址为:https://pypi.python.org/pypi/pip#downloads
3、下载最新的工具:pip-9.0.1.tar.gz (md5, pgp)
4、下载完成之后,解压到一个文件夹,用CMD控制台进入解压目录
5、执行:python setup.py install
6、在环境变量PATH中添加D:\Python36\Scripts
 
四 pip基本用法?
1、列出已安装包
C:\Users\lenovo>pip list
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
Pillow (4.0.0)
pip (9.0.1)
pyasn1 (0.2.3)
pygame (1.9.3)
PyOpenGL (3.1.0)
pywin32 (221)
rsa (3.4.2)
setuptools (28.8.0)
 
2、查看待更新包
C:\Users\lenovo>pip list --outdated
DEPRECATION: The default format will switch to columns in the future. You can use --format=(legacy|columns) (or define a format=(legacy|columns) in your pip.conf under the [list] section) to disable this warning.
Pillow (4.0.0) - Latest: 4.1.1 [wheel]
setuptools (28.8.0) - Latest: 35.0.2 [wheel]
 
3、安装redis
C:\Users\lenovo>pip install redis
Collecting redis
  Downloading redis-2.10.5-py2.py3-none-any.whl (60kB)
    100% |████████████████████████████████| 61kB 19kB/s
Installing collected packages: redis
Successfully installed redis-2.10.5
 
4、卸载redis
C:\Users\lenovo>pip uninstall redis
Uninstalling redis-2.10.5:
  d:\python36\lib\site-packages\redis-2.10.5.dist-info\description.rst
  d:\python36\lib\site-packages\redis-2.10.5.dist-info\installer
  d:\python36\lib\site-packages\redis-2.10.5.dist-info\metadata
  d:\python36\lib\site-packages\redis-2.10.5.dist-info\metadata.json
  d:\python36\lib\site-packages\redis-2.10.5.dist-info\record
  d:\python36\lib\site-packages\redis-2.10.5.dist-info\top_level.txt
  d:\python36\lib\site-packages\redis-2.10.5.dist-info\wheel
  d:\python36\lib\site-packages\redis\__init__.py
  d:\python36\lib\site-packages\redis\__pycache__\__init__.cpython-36.pyc
  d:\python36\lib\site-packages\redis\__pycache__\_compat.cpython-36.pyc
  d:\python36\lib\site-packages\redis\__pycache__\client.cpython-36.pyc
  d:\python36\lib\site-packages\redis\__pycache__\connection.cpython-36.pyc
  d:\python36\lib\site-packages\redis\__pycache__\exceptions.cpython-36.pyc
  d:\python36\lib\site-packages\redis\__pycache__\lock.cpython-36.pyc
  d:\python36\lib\site-packages\redis\__pycache__\sentinel.cpython-36.pyc
  d:\python36\lib\site-packages\redis\__pycache__\utils.cpython-36.pyc
  d:\python36\lib\site-packages\redis\_compat.py
  d:\python36\lib\site-packages\redis\client.py
  d:\python36\lib\site-packages\redis\connection.py
  d:\python36\lib\site-packages\redis\exceptions.py
  d:\python36\lib\site-packages\redis\lock.py
  d:\python36\lib\site-packages\redis\sentinel.py
  d:\python36\lib\site-packages\redis\utils.py
Proceed (y/n)? y
  Successfully uninstalled redis-2.10.5
 
5、pip查看已安装包
C:\Users\lenovo>pip show --files rsa
Name: rsa
Version: 3.4.2
Summary: Pure-Python RSA implementation
Home-page: https://stuvel.eu/rsa
Author: Sybren A. Stuvel
Author-email: sybren@stuvel.eu
License: ASL 2
Location: c:\users\lenovo\appdata\roaming\python\python36\site-packages
 
6、pip升级包
C:\Users\lenovo>pip install --upgrade Pillow
Collecting Pillow
  Downloading Pillow-4.1.1-cp36-cp36m-win_amd64.whl (1.5MB)
    100% |████████████████████████████████| 1.5MB 81kB/s
Collecting olefile (from Pillow)
  Downloading olefile-0.44.zip (74kB)
    100% |████████████████████████████████| 81kB 34kB/s
Installing collected packages: olefile, Pillow
  Running setup.py install for olefile ... done
  Found existing installation: Pillow 4.0.0
    Uninstalling Pillow-4.0.0:
      Successfully uninstalled Pillow-4.0.0
Successfully installed Pillow-4.1.1 olefile-0.44
 
分享到:
评论

相关推荐

    安装 python编程语言 扩展库的方法.docx

    Python 是一种流行的编程语言,它拥有庞大的扩展库,可以帮助开发 者完成各种功能。但是,在 Python 中使用某些库时,可能会遇到需要 安装扩展库的情况。下面,我们将介绍安装 Python 扩展库的方法。 方法一:使用 ...

    boost.python 编写扩展python库

    使用boost.python 编写扩展python库,使用mfc例子调用扩展的python库。 myPydll 工程为扩展python库,生成文件myPydll.dll,将该文件拷贝到python解释器可搜索的路径下,如我的电脑就是“C:\Python26\DLLs”,并改...

    python标准库和扩展库.docx

    python标准库和扩展库.docx

    使用Python扩展PSSE,python常用扩展库源码.zip

    使用Python扩展PSSE,python常用扩展库源码

    Python扩展库spleeter分离MP3

    使用Python扩展库spleeter分离MP3音乐文件中的伴奏和人声 声明: 本文内容仅用于技术研究,切勿用于侵权行为,请支持音乐版权。 给定MP3音乐,分离人声,保存为独立的MP3文件。

    实验三 数据结构和python扩展库练习.ipynb

    实验三 数据结构和python扩展库练习.ipynb

    python:官方Python扩展库

    这是python扩展的官方存储库。 该存储库与albert一起提供。 如果要使用边缘扩展,或者共享扩展,请克隆存储库。 检查有关Python扩展的文档。 要在用户空间中安装扩展,请在终端中输入以下内容: git clone ...

    Python-PyTorchGeometric用于PyTorch的几何深度学习扩展库

    PyTorch Geometric:用于PyTorch的几何深度学习扩展库

    (完整版)Python题库.docx

    《Python程序设计》填空题1-280题 2017-03-23董付国Python小屋 1、Python安装扩展库常用的是_______工具。(pip) 2、Python标准库math中用来计算平方根的函数是__________。(sqrt) 3、Python程序文件扩展名主要...

    python标准库.pdf

    python标准库.pdf python标准库.pdf python标准库.pdf python标准库.pdf python标准库.pdf python标准库.pdf python标准库.pdf python标准库.pdf

    python词云扩展库

    3.6.x python词云扩展库pillow numpy matplotlib wordcloud jieba 包含升级库pip-23.0.1-py3-none-any.whl

    python扩展c++示例

    代码有详细的注释,是一个c++实现python扩展的示例.dd

    visual studio的python扩展库

    Python Tools for Visual Studio2015 以vs2015为例,先点击 2.2.6msi 程序包进行安装,安装完成后,再点击对应的 2.2.6vsix 文件进行安装(如何先安装这个会出现错误:无法安装此扩展,因为缺少以下引用:- Python ...

    python标准库PDF

    Python标准库 参考手册 Python标准库3.6 参考手册 中文完整pdf版-CSDN下载

    Python题库.pdf

    Python程序设计》填空题1-280题 、Python安装扩展库常用的是_______工具。(pip) 、Python标准库math中用来计算平方根的函数是__________。

    Python-一个自动回复FAQ问题的聊天机器人

    一个自动回复FAQ问题的聊天机器人。目前使用了简单词汇对比、词性权重、词向量3种相似度计算模式。输入符合格式的FAQ文本文件即可立刻使用。欢迎把无法正确区分的问题和FAQ文件发送到评论区。

    Python标准库3.7

    Python标准库3.7 Python标准库3.7 Python标准库3.7 Python标准库3.7

    Python标准库中文版

    python是一门高级脚本语言,本书介绍了Python常用库函数应用

Global site tag (gtag.js) - Google Analytics