【问题标题】:Cannot install any libraries [closed]无法安装任何库[关闭]
【发布时间】:2021-06-19 21:04:38
【问题描述】:

我刚刚在我的新 MacBook Air M1 上安装了 pycharm。我正在尝试设置 pycharm,但我发现我无法安装任何库。 (我尝试了包安装程序、包管理器和 macOS 终端)通过 macOS 我收到此错误:

任何想法如何解决这个问题? (顺便说一句:我的电脑也有同样的问题)

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

pip 调试器信息:

§pip debug
WARNING: This command is only meant for debugging. Do not use this with automation for parsing and getting these details, since the output and options of this command may change without notice.
pip version: pip 21.1.2 from /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pip (python 3.9)
sys.version: 3.9.1 (v3.9.1:1e5d33e9b9, Dec  7 2020, 12:44:01) 
[Clang 12.0.0 (clang-1200.0.32.27)]
sys.executable: /usr/local/bin/python3.9
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: UTF-8
sys.platform: darwin
sys.implementation:
  name: cpython
'cert' config value: Not specified
REQUESTS_CA_BUNDLE: None
CURL_CA_BUNDLE: None
pip._vendor.certifi.where(): /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pip/_vendor/certifi/cacert.pem
pip._vendor.DEBUNDLED: False
vendored library versions:
  appdirs==1.4.4
  CacheControl==0.12.6
  colorama==0.4.4
  distlib==0.3.1
  distro==1.5.0 (Unable to locate actual module version, using vendor.txt specified version)
  html5lib==1.1
  msgpack==1.0.2 (Unable to locate actual module version, using vendor.txt specified version)
  packaging==20.9
  pep517==0.10.0
  progress==1.5
  pyparsing==2.4.7
  requests==2.25.1
  certifi==2020.12.05
  chardet==4.0.0
  idna==3.1
  urllib3==1.26.4
  resolvelib==0.7.0
  setuptools==44.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  six==1.15.0
  tenacity==7.0.0 (Unable to locate actual module version, using vendor.txt specified version)
  toml==0.10.2
  webencodings==0.5.1 (Unable to locate actual module version, using vendor.txt specified version)
Compatible tags: 327
  cp39-cp39-macosx_11_0_arm64
  cp39-cp39-macosx_11_0_universal2
  cp39-cp39-macosx_10_16_universal2
  cp39-cp39-macosx_10_15_universal2
  cp39-cp39-macosx_10_14_universal2
  cp39-cp39-macosx_10_13_universal2
  cp39-cp39-macosx_10_12_universal2
  cp39-cp39-macosx_10_11_universal2
  cp39-cp39-macosx_10_10_universal2
  cp39-cp39-macosx_10_9_universal2
  ...
  [First 10 tags shown. Pass --verbose to show all.]

【问题讨论】:

  • 您对确实存在的其他哪些库有疑问?

标签: python python-3.x pip


【解决方案1】:

从错误的外观来看,它无法检测到任何名为 jupiter 的库,可能是因为它不存在。

如果您尝试安装 Jupyter 库,请尝试像这样安装它:

pip3 install jupyterlab

Jupyter's installation page

【讨论】:

    【解决方案2】:

    如果您指的是 Jupyter Lab,则需要使用以下命令行安装它:

    pip install jupyterlab
    

    而使用 PyCharm,您需要从官方 JetBrains website 获取 .dmg

    至于你的 Windows 操作系统,你可以下载 Anaconda 之类的东西并在命令行中使用它:

    conda install -c conda-forge jupyterlab
    

    Here 是有关 Windows 安装的更多信息的网站。

    希望对你有所帮助。

    【讨论】:

      猜你喜欢
      • 2021-01-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-11-28
      • 2015-08-30
      • 2017-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多