Problem with installing with Python2

Dear all,
I am encountering problem with installing pmx with Python2.7 which has a problem with matplotlib version. Has anyone come across such sort of problem? I wanted to use the scripts from the master branch particularly the scripts used in ligands.
Moreover, to not to break the pmx compiled from the develop branch, I tried compiling it in a separate conda environment yet it doesn’t work?

Could you show what error exactly you get?

I just tested in a clean conda environment, but couldn’t reproduce the error. Here are the commands that I used:

conda create -n pmx_python2 python=2.7
conda activate pmx_python2
conda install numpy matplotlib scipy pip jupyter pandas
python -m pip install --upgrade pip
git clone
cd pmx
pip install .

“pip install .” leads to,
ERROR: Package ‘pmx’ requires a different Python: 3.8.10 not in ‘>=2.7, <3’
I followed the same steps as you mentioned.

It seems that you are trying to compile pmx which requires python3. Are you sure that you checked out the ‘master’ branch?

Do I have to explicity do that as in “git checkout master”?

Yes, if your current branch is not ‘master’, you need to checkout ‘master’

1 Like

okay I will do that. But I am already in master branch.

pip install . didn’t work but python2 install method did work. For what reasons pip didn’t work I could not understand that.
Thanks a lot,

Could it be that the pip which you were using was not compiled in the current conda environment, but was taken from somewhere else in your PYTHONPATH and was compiled with python3?

Yes it should be the reason. Let me check that. Thanks a lot.