When I run the py file,it occured:
from rosetta.core.scoring.sasa import SasaCalc
ModuleNotFoundError: No module named 'rosetta.core'
I don't know how to handle it, thanks for every help
Category:
Post Situation:
When I run the py file,it occured:
from rosetta.core.scoring.sasa import SasaCalc
ModuleNotFoundError: No module named 'rosetta.core'
I don't know how to handle it, thanks for every help
In recent versions of PyRosetta, the rosetta module is now a submodule of pyrosetta.
Change the line to the following:
from pyrosetta.rosetta.core.scoring.sasa import SasaCalc
I tried as you said,but it still occued
from pyrosetta.rosetta.core.scoring.sasa import SasaCalc
ModuleNotFoundError: No module named 'pyrosetta'
I also tried "pip install pyrosetta",it doesn;t work
PyRosetta is separately licensed (https://www.rosettacommons.org/software/license-and-download), and must be obtained and installed manually (https://www.pyrosetta.org/downloads), using the username and password provided to you with the license - there's not a convienient pip install command which works out of the box.
You also need to install PyRosetta for the particular Python interpreter you're using. One common issue is to install pyrosetta to one Python interpreter, but accidentally launch another one. If you've installed PyRosetta, but are still seeing the "No module named 'pyrosetta'" issue check which python interpreters you're using.