【发布时间】:2021-01-23 09:28:30
【问题描述】:
我尝试安装新软件包,例如 dtale、u8darts,但也升级旧软件包,例如 statsmodels 和许多其他软件包,但没有成功,我收到以下消息:
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python
as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021.
More
details about Python 2 support in pip can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove
support for this functionality.
ERROR: Could not find a version that satisfies the requirement u8darts (from versions: none)
ERROR: No matching distribution found for u8darts
我还尝试使用pip3 安装相同的软件包,并且我有 python3 并且可以。唯一的问题是,虽然我只在我的 IDE 上使用 python3(Jupyter Notebook和VScode),但我无法导入它们。我现在正试图从我的系统中删除 python2,我正在努力。
【问题讨论】:
-
“我现在正试图从我的系统中删除 python2,我正在努力”——你可能不应该删除 Python 2,因为很多系统服务可能依赖于它。如果您设法删除 Python 2,系统可能会变得不稳定
-
@ForceBru 我该怎么办?怎么办?
-
您应该检查
pip3是否为您要从中导入它们的同一版本的 Python 3 安装包 -
@ForceBru 它确实安装了它们,但我无法导入它们。请问如何检查?
-
不要删除 Python 2。当 pipping 时,确保你
/path/to/python3 -m pip install whatever使用你打算安装/导入的 python3。在PYTHON变量中指定 python3。
标签: python-3.x macos python-2.7 macos-catalina u8darts