【问题标题】:Unable to install package "System" in Spyder无法在 Spyder 中安装软件包“系统”
【发布时间】:2021-12-05 09:18:25
【问题描述】:

我已经能够轻松安装一些其他软件包,但是“系统”给我带来了麻烦。

下面是我的代码:-

pip install System
import System

这是错误:-

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

【问题讨论】:

    标签: python package system spyder


    【解决方案1】:

    据我所知there is no module called System in PiPy,这是pip使用的模块库。

    我认为您希望使用 the sys module,它是核心 Python 库的一部分,不需要安装(已随 python 一起安装)。

    可以直接导入使用,无需通过pip安装:

    import sys
    sys.copyright
    

    【讨论】:

      猜你喜欢
      • 2019-05-21
      • 1970-01-01
      • 2021-12-06
      • 2017-02-24
      • 2018-10-09
      • 2015-08-11
      • 1970-01-01
      • 1970-01-01
      • 2022-07-04
      相关资源
      最近更新 更多