-
Notifications
You must be signed in to change notification settings - Fork 667
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conda installation in a Python 3 environment doesn't work #1446
Comments
@khinsen we don't have python 3 packages right now. In fact MDAnalysis only has experimental python 3 support right now. We are working on getting full python 3 support this summer. Until then you have to install MDAnalysis from pip on python3. But be warned that some things might not work. I'm a bit surprised though that conda just installed the python2 package. Did you install from the conda-forge channel? |
Yes. I understand that MDAnalysis has incomplete Python 3 support for now (although it takes a while to figure this out). And then it makes sense not to have a Python 3 conda package. But then I expect one of (1) an error message or (2) an automatic installation of Python 2 as a dependency, with a preference for (1). |
Did you install MDAnalysis from the conda-forge channel? |
What does |
I can confirm: In an anaconda3 environment, conda will happily install a non-functional MDAnalysis.
However, despite it being installed by conda, it is not importable Python 3.5.3 |Anaconda 4.4.0 (x86_64)| (default, Mar 6 2017, 12:15:08)
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.57)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import MDAnalysis
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named 'MDAnalysis'
>>> and as originally reported, it was installed in anaconda3/lib/python2.7/site-packages/
@kain88-de , this is my config:
gives
|
P.S.: I followed our quick-install instructions
and the sources
|
Here is my conda configuration:
|
The conda packages are now not installable on python 3 anymore |
This seems to be still a problem for packages on conda-forge. Any way I can help? Cheers |
@goanpeca can you check which version of the conda package gets installed? EDIT: ... and where? @kain88-de had fixed the problem conda-forge/mdanalysis-feedstock#4 (comment) but I actually don't remember how (probably conda-forge/mdanalysis-feedstock@3b8efbb); we now certainly have the python run time dependency which – to my limited understanding – should ensure that only matching versions of Python should be installed. |
I will check this next week ;-) I tried this installation over two months ago and it was not working (this issue was also closed by that time, but the error was identical using conda-forge) |
Results in
Which talks about pip and would confuse users using conda (BTW before I could not import the package, not sure what changed) |
The warning you get is normal. The test files are in a separate package |
yep! Agreed. Will need to test on the system I got the issue with python 3. Glad to see it is working for me now :-) |
Expected behaviour
conda install mdanalysis
should create a working installation of MDAnalysis, or else report an error.Actual behaviour
When run in a Python 3 conda environment,
conda install mdanalysis
installs a Python 2 version of MDAnalysis (underlib/python2.7
). It does not install Python 2, so the installation is unusable.Note that the installation instructions nowhere mention if MDAnalysis expects Python 2 or Python 3, so it is certainly not unreasonable to try a conda installation for Python 3.
The text was updated successfully, but these errors were encountered: