Installing MDAnalysis using conda

255 views
Skip to first unread message

Ashi Agrawal

unread,
Feb 16, 2021, 5:16:30 PM2/16/21
to MDnalysis discussion
Hi, 

I've run all the lines below, in order, as followed: 

conda install -c conda-forge mdanalysis 
conda config --add channels conda-forge 
conda update --yes conda
conda create --yes -n mdaenv python=3.6
source activate mdaenv
conda install --yes -n mdaenv MDAnalysis MDAnalysisTests
python -c 'import MDAnalysis as mda; print(mda.__version__)'

-- upon completing the last step, I get an output of '1.0.0'

I then run 

pytest --disable-pytest-warnings --pyargs MDAnalysisTests

and it comes up with 142 errors in 5 seconds. Does anyone have any advice?

Thank you, 
Ashi

Shubham Anand

unread,
Feb 16, 2021, 5:19:03 PM2/16/21
to mdnalysis-...@googlegroups.com
Hi,

That is because of the latest version of matplotlib. Try to degrade the version of matplotlib to 3.2.1 then run it again.

Regards,
Shubham

--
You received this message because you are subscribed to the Google Groups "MDnalysis discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mdnalysis-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mdnalysis-discussion/6fb79992-2e2e-4ad0-8986-00213457f844n%40googlegroups.com.

Ashi Agrawal

unread,
Feb 17, 2021, 5:40:19 AM2/17/21
to MDnalysis discussion
Hi Shubham, 

Thank you for your reply - I've checked and I have version 3.3.2 . How would I go about degrading the version?

Regards, 
Ashi

Shubham Anand

unread,
Feb 17, 2021, 5:42:54 AM2/17/21
to mdnalysis-...@googlegroups.com
pip install matplotlib == 3.2.1 

Just check it once on google

Oliver Beckstein

unread,
Feb 17, 2021, 12:09:07 PM2/17/21
to mdnalysis-discussion
Hi Ashi,


We should have 1.0.1 out soon, which fixes this issue.

Oliver

Suliman Sharif

unread,
Feb 17, 2021, 12:49:04 PM2/17/21
to mdnalysis-...@googlegroups.com
Yeah I came across this as well,

I honestly just deleted the warn flag in the MDAnalysis source code when I pip installed it while retaining my matplotlib version. Still running okay without it - it was easier to deal with than the mess of dependencies I have in my conda env that rely on higher versions of matplotlib. 

-Sul



--
Suliman Sharif
M.Sc Medicinal Chemistry | University of California, Riverside
B.Sc. Biochemistry | University of Texas at Austin
Reply all
Reply to author
Forward
0 new messages