The package you are trying to install (which is ~ 5 years old) has
MDAnalysis==0.8.1
as a requirement, which is a version from 2014 and was therefore written for python 2x. In your error message you can see that in the setup.py
of MDAnalysis, we have the line
print "MDAnalysis requires Python 2.6 or better. Python %d.%d detected" %
which is the python 2x syntax of print(no parantheses).
You have multiple options now:
- Try to find a differerent library than pytransform that serves your need and is more up to date
- Download the pytransform tar.gz file manually, extract it and replace
MDAnalysis==0.8.1
in the requires.txt
with MDAnalysis
. This is not guaranteed to work though, as the API might have changed
- Download the
MDAnalysis
0.8.1 source code and try to adjust it to python 3 syntax. This might be a lot of work though
- Use python2 for your project. Do note though that python2 has reached it's end of life and is no longer supported, e.g. by the newest version of pip
Note:
Looking at the code of pytransform
, option 2 might be the easiest. Even if it doesn't work with the newest MDAnalysis out of the box, the code is only 74 lines long, so changing it to a newer MDAnalysis API should not be too much work
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…