zoukankan      html  css  js  c++  java
  • pip安装任何包都出现问题

    PS:以下操作全部基于win10 64位操作系统

    pip安装任何包都出现问题: Cannot unpack file /tmp/pip-KzJgHD-unpack/simple

    报错:

    Cannot unpack file /tmp/pip-KzJgHD-unpack/simple (downloaded from /tmp/pip-M1hKq2-build, content-type: text/html; charset=utf-8); cannot detect archive format
    Cannot determine archive format of /tmp/pip-M1hKq2-build

    解决:
    需要添加 --extra-index-url 如:

    pip install --extra-index-url http://mirrors.aliyun.com/pypi/simple/ config
    

    --extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url

    安装模块失败,错误如下

    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

    解决办法:

    • 访问https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient,找到并下载自己需要的包
    • CMD切换到存放该文件目录下,执行pip install mysqlclient
    • successful ^-^

    运行pip install win32apipip install pywin32

    都会提示错误,如下:

      Could not find a version that satisfies the requirement win32api (from versions: ) 
     No matching distribution found for win32api

    改为

    pip install pypiwin32

    成功解决。

  • 相关阅读:
    五种方法实现python3-随机生成10位包含数字和字母的密码
    用matplotlib中imshow()函数绘图
    MTNET 自用ios网络库开源
    移动时代软件测试团队该往哪里去?
    自己做的加速app测试流程的小工具,目前打算开放使用,想注册的朋友抓紧了,嘻嘻
    golang append
    Invalid Image Path
    xcode 插件之KSImageNamed-Xcode
    dissmiss a UISearchBar with an SearchBarController
    nginx server_name
  • 原文地址:https://www.cnblogs.com/caiwenjun/p/11985158.html
Copyright © 2011-2022 走看看