zoukankan      html  css  js  c++  java
  • 安装部署问题

    Windows下python pip升级失败的解决方案 - CSDN博客

    Windows下升级pip推荐的方式为:

    $ python -m pip install --upgrade pip

    这样操作却往往会出现下面的错误:

    Exception:
    Traceback (most recent call last):
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpipasecommand.py", line 215, in main
        status = self.run(options, args)
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpipcommandsinstall.py", line 342, in run
        prefix=options.prefix_path,
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpip
    eq
    eq_set.py", line 784, in install
        **kwargs
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpip
    eq
    eq_install.py", line 851, in install
        self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpip
    eq
    eq_install.py", line 1064, in move_wheel_files
        isolated=self.isolated,
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpipwheel.py", line 462, in move_wheel_files
        generated.extend(maker.make(spec))
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpip\_vendordistlibscripts.py", line 372, in make
        self._make_script(entry, filenames, options=options)
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpip\_vendordistlibscripts.py", line 276, in _make_script
        self._write_script(scriptnames, shebang, script, filenames, ext)
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpip\_vendordistlibscripts.py", line 212, in _write_script
        launcher = self._get_launcher('t')
      File "D:Kangbeibeipython_projectdatamining-learningdecision_treevenvlibsite-packagespip-9.0.3-py3.6.eggpip\_vendordistlibscripts.py", line 351, in _get_launcher
        result = finder(distlib_package).find(name).bytes
    AttributeError: 'NoneType' object has no attribute 'bytes'

    可以采用下面的安装方式解决:

    $ python -m pip install -U --force-reinstall pip
  • 相关阅读:
    重启服务器后,托盘自启动
    【转】微服务(概念篇):什么是微服务?一篇文章让你彻底搞明白
    发送Http请求调用webService
    sqlserver查询数据库中有多少个表,多少视图,多少存储过程,或其他对象
    CDATA嵌套问题
    Mysql字符串字段判断是否包含某个字符串的3种方法[转载]
    处理jQuery选择器中的特殊符号,如(、#等
    js数组合并(一个数组添加到另一个数组里面)方法
    spring boot web项目在IDEA下热部署解决办法(四步搞定)
    javascript对数组分页
  • 原文地址:https://www.cnblogs.com/ithairy/p/9692118.html
Copyright © 2011-2022 走看看