2016-04-11 13 views
0

Ich benutze Anaconda Python. Um Bandstrukturen zu plotten, gefolgt ich den CodeAnaconda: Kein Modul namens Scientific

#!/usr/bin/env python 
''' 
adapted from https://wiki.fysik.dtu.dk/dacapo/Examples#calculating-a-band-diagram 
''' 
from ase import * 
from ase.calculators.jacapo import * 

b = 3.61/2. 
bulk = Atoms([Atom('Cu',(0,0,0))], 
      cell=[[0,b,b], 
        [b,0,b], 
        [b,b,0]]) 

calc = Jacapo('2.5.1-Cu.nc', 
       pw=340, 
       nbands=8, 
       symmetry=True, 
       kpts=(10,10,10),debug=100) 

bulk.set_calculator(calc) 

# run the calculation 
energy = calc.get_potential_energy() 

an der folgenden Verbindung:

Plotting band Strucures

I Atomic Simulation Environment (ASE) Modul installiert. Aber wenn ich es ausführe, kommt der Fehler, dass das Modul namens Scientific fehlt.

Traceback (most recent call last): 
    File "filename.py", line 6, in <module> 
    from ase.calculators.jacapo import * 
    File "/home/username/anaconda/lib/python2.7/site-packages/ase/calculators/jacapo/__init__.py", line 1, in <module> 
    import Scientific 
ImportError: No module named Scientific 

Wenn es hilft, die __init__.py Datei auf /home/username/anaconda/lib/python2.7/site-packages/ase/calculators/jacapo/ liest wie:

import Scientific 
assert [int(x) for x in Scientific.__version__.split('.')] >= [2, 8] 
from ase.calculators.jacapo.jacapo import * 

Ich habe versucht, das wahre wissenschaftliche Paket zu lokalisieren und installieren, aber alles umsonst. Jede Hilfe wird sehr geschätzt.

Antwort