zoukankan      html  css  js  c++  java
  • python pip及安装包安装

    python 微信聊天
    D:untitledhello.py 入口 web禁止登陆。。

    安装命令:
    手动安装:
    D:pythonsetuptools-41.2.0>python setup.py install

    下载下来手动安装pip
    D:pythonpip-1.4.1pip-1.4.1>python setup.py install
    D:pythonsetuptools-41.2.0>python setup.py install

    ImportError: No module named future解决方法:
    手动安装缺少依赖,sudo pip install future


    下载地址:https://pypi.org/simple/itchat/
    https://pypi.org/simple/pip/

    Python之requests的安装
    https://www.cnblogs.com/king8/p/9216133.html
    关于ModuleNotFoundError: No module named 'urllib3'解决
    https://blog.51cto.com/suyanzhu/2313832
    https://github.com/urllib3/urllib3
    pip list

    ImportError: No module named 'chardet' 依赖关系:
    解决:依次使用pip安装即可
    pip install certifi
    pip install chardet
    pip install idna
    pip install urllib3

    setuptools 41.2.0
    https://pypi.org/project/setuptools/#files
    ez_setup 0.9
    https://pypi.org/project/ez_setup/#files

    windows操作系统:从https://bootstrap.pypa.io/get-pip.py下载get-pip.py文件,然后使用python运行这个文件python get-pip.py即可。
    方法:
    网上说是因为网络的问题,要使用国内的镜像源来加速:python get-pip.py -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

    解决了,此法似乎同样适用于pip install各种模块时出现的could not find a version问题

    https://github.com/littlecodersh/ItChat

    pip自动安装:
    D:Python27Scripts>pip install certifi -i http://pypi.douban.com/simple/
    D:Python27Scripts>pip install -r requirements.txt

    D:Python27Scripts>pip list
    bl-wxpy (0.6.12)
    certifi (2019.9.11)
    chardet (3.0.4)
    ez-setup (0.9)
    future (0.17.1)
    idna (2.8)
    itchat (1.3.10)
    pip (1.4.1)
    pypng (0.0.20)
    pyqrcode (1.2.1)
    requests (2.22.0)
    setuptools (41.2.0)
    urllib3 (1.25.3)
    wxpy (0.3.9.8)

    D:python>python get-pip.py -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com


    解决Python2.7的UnicodeEncodeError: ‘ascii’ codec can’t encode异常错误
    import sys
    reload(sys)
    sys.setdefaultencoding('utf-8')
    https://wangye.org/blog/archives/629/


    删除指定的模块或者包, 在命令提示符cmd下用如下命令:
    pip uninstall xxx 如:pip uninstall bl-wxpy

  • 相关阅读:
    恢复计算机崩溃数据的五款最佳Linux发行版
    不敢想象!Vim使用者的“大脑”竟是这样
    开发者和系统管理者最喜爱的开源工具Vim 起步学习的五个技巧
    .NET程序与CA对接一直提示重定向
    覆盖原有div或者Input的鼠标移上去描述
    IOS9以上如何导入铃声并设置
    c# 动态调用webserver
    没有终结点在侦听可以接受消息的*这通常是由于不正确的地址或者 SOAP操作导致的
    url 参数的加号变成空格处理
    在git 服务器挂载、创建新的项目、克隆新的项目
  • 原文地址:https://www.cnblogs.com/jhuangsjtu/p/11523569.html
Copyright © 2011-2022 走看看