PerkinElmer Informatics Support Forum
Decrease font size
Increase font size
Topic Title: ChemScript15インポートのコマンド
Topic Summary:
Created On: 7/13/2017 4:20 AM
Status Post and Reply
Linear : Threading : Single : Branch
Topic Tools Topic Tools
View topic in raw text format. Print this topic.
 7/13/2017 4:20 AM
User is offline View Users Profile Print this message


Sue

Posts: 226
Joined: 8/17/2009

Question:

ChemScript15を使いたいのですが、下記のようなエラーが出てしまいます。どのように対応したらよろしいでしょうか?

>>> import ChemScript15

Traceback (most recent call last):

File "", line 1, in

import ChemScript15

ImportError: No module named ChemScript15

>>>

Answer:

ChemScript15インポートのコマンドはimport ChemScript15」でなく、「from ChemScript15 import*」となります。例えば

---------------------------------------------------------

from ChemScript15 import*

m = StructureData.LoadData('CCC=O')

print(m.ExactMass)

---------------------------------------------------------

FuseTalk Basic Edition v4.0 - © 1999-2017 FuseTalk Inc. All rights reserved.