跳至主要內容
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?

4563博客

全新的繁體中文 WordPress 網站
  • 首頁
  • pip install psutil==5.6.7 安装失败,哪位大侠了解?
未分類
16 2 月 2020

pip install psutil==5.6.7 安装失败,哪位大侠了解?

o0o 大佬有话说 : 2019-12-15 02:40:21

pip install psutil==5.6.7 安装失败,哪位大侠了解?

pip install psutil==5.6.7

pip install psutil==5.6.7
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won’t be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
Collecting psutil==5.6.7
Using cached https://files.pythonhosted.org/packages/73/93/4f8213fbe66fc20cb904f35e6e04e20b47b85bee39845cc66a0bcf5ccdcb/psutil-5.6.7.tar.gz
    ERROR: Command errored out with exit status 1:
   command: /usr/bin/python2 -c ‘import sys, setuptools, tokenize; sys.argv = ‘"’"’/tmp/pip-install-01Wd21/psutil/setup.py’"’"’; __file__=’"’"’/tmp/pip-install-01Wd21/psutil/setup.py’"’"’;f=getattr(tokenize, ‘"’"’open’"’"’, open)(__file__);code=f.read().replace(‘"’"’rn’"’"’, ‘"’"’n’"’"’);f.close();exec(compile(code, __file__, ‘"’"’exec’"’"’))’ egg_info –egg-base /tmp/pip-install-01Wd21/psutil/pip-egg-info
         cwd: /tmp/pip-install-01Wd21/psutil/
    Complete output (19 lines):
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-install-01Wd21/psutil/setup.py", line 353, in <module>
      main()
      File "/tmp/pip-install-01Wd21/psutil/setup.py", line 349, in main
      setup(**kwargs)
      File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
      _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 269, in __init__
      _Distribution.__init__(self,attrs)
      File "/usr/lib64/python2.7/distutils/dist.py", line 287, in __init__
      self.finalize_options()
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 302, in finalize_options
      ep.load()(self, ep.name, value)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2443, in load
      return self.resolve()
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2453, in resolve
      raise ImportError(str(exc))
    ImportError: ‘module’ object has no attribute ‘check_specifier’
    —————————————-
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

zhujimi 大佬有话说 : 2019-12-15 04:10:38

试试
pip install setuptools –upgrade
pip install –upgrade pip

文章導覽

上一篇文章
下一篇文章

AD

其他操作

  • 登入
  • 訂閱網站內容的資訊提供
  • 訂閱留言的資訊提供
  • WordPress.org 台灣繁體中文

51la

4563博客

全新的繁體中文 WordPress 網站
返回頂端
本站採用 WordPress 建置 | 佈景主題採用 GretaThemes 所設計的 Memory
4563博客
  • Hostloc 空間訪問刷分
  • 售賣場
  • 廣告位
  • 賣站?
在這裡新增小工具