我已被授予远程访问服务器的权限。并且我需要使用诸如pyswarms之类的模块。然而,pyswarms试图安装Matplotlib,而Matplotlib 3需要python3.5或更高版本和/或pip9或更高版本。在该服务器上有python3.4和pip8。我一直在使用--user安装模块。我没有root访问权限,所以不能使用sudo。我尝试更新pip,但它再次安装了相同的版本(8)。有什么办法可以解决这个问题吗?
使用缓存的python /653aec68e9cfb775c4fbae8f71011206e5e7fe4d60fcf01ea1a9d3bc957f/matplotlib-3.0.2.tar.gz命令matplotlib>=1.3.1 https://files.pythonhosted.org/packages/89/0c setup.py egg_info的完整输出收集python(从pyswarms):
Matplotlib 3.0+ does not support Python 2.x, 3.0, 3.1, 3.2, 3.3, or 3.4.
Beginning with Matplotlib 3.0, Python 3.5 and above is required.
This may be due to an out of date pip.
Make sure you have pip >= 9.0.1.发布于 2018-12-26 01:13:05
安装带有约束的包:
pip install pyswarms 'matplotlib<3.0'也就是说,安装pyswarms (任何版本)并安装版本低于3.0的matplotlib。
https://stackoverflow.com/questions/53923489
复制相似问题