python - 无法安装任何库
问题描述
我刚刚在我的新 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.]
解决方案
从错误的外观来看,它无法检测到任何名为 的库jupiter
,可能是因为它不存在。
如果您尝试安装该Jupyter
库,请尝试像这样安装它:
pip3 install jupyterlab
推荐阅读
- javascript - 在 ReactJS 中,如何在另一个组件中渲染一个组件?
- scala - Spark CSV阅读器:日文文本乱码并处理多行
- python-3.x - Aws cloudwatch 日志 getQueryResults 在尝试使用 boto3 时返回空
- python - 突然收到错误 pywintypes.com_error MAPI-error-number: 80004001。发生了什么?
- flutter - 颤振飞镖正则表达式,通过实际路线获取路线名称
- python - Python:从 .txt 文件目录创建文件列表
- java - Java - 让运行时使用所有可用的 RAM
- c# - GetAccessTokenAsync 静默失败,无法在调试器中捕获问题
- webpack - 如何不将 CSS 提取到 vue-cli3 中的单独文件中?
- django - Django模型添加uuid