python-3.x - 在要求升级时删除 python2 Mac
问题描述
我尝试安装新的软件包,例如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
as 安装相同的软件包,并且我有 python3 并且可以。唯一的问题是,尽管我只在我的 IDE(Jupyter Notebook
和VScode
)上使用 python3,但我无法导入它们。我现在正试图从我的系统中删除 python2,我正在努力。
解决方案
我已经合并了 Anconda,我需要做的就是使用以下命令恢复为 bash:
chsh -s /bin/bash
然后重新安装 Anaconda 并选择家庭安装(确保您的opt
文件夹不包含任何 anaconda 文件夹,您可以通过键入space bar
和访问/opt
)
现在我可以安装我想要的所有软件包。没问题。
推荐阅读
- bluetooth-lowenergy - 如何通过蓝牙将数据从 Arduino IoT 发送到另一个 IoT?
- ruby-on-rails - has_many :通过rails5中的关联问题
- bash - 如何处理 git 别名的组合
- angular - 组件在路由时第一次为空,Angular
- python - 如何实现 inp = input 并打印到 discord.py 代码?
- python - TypeError: list indices must be integers or slices, not str, for osm_road in self.get_osm_objs()['road']:
- python - Python Pandas - 如何设置“列标签”宽度
- css - CSS背景颜色过渡问题
- java - teplate 类中的内部类对象数组
- assimp - Assimp gltf2 导出器支持内部纹理存储