Skip to content
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

Pyrosetta installation problem #191

Open
jjz2023 opened this issue Oct 7, 2024 · 4 comments
Open

Pyrosetta installation problem #191

jjz2023 opened this issue Oct 7, 2024 · 4 comments

Comments

@jjz2023
Copy link

jjz2023 commented Oct 7, 2024

I tried to install pyrosetta with the first commend line. It appeared to work, but error appeared after the second commend line.

pip install pyrosetta-installer
python -c 'import pyrosetta_installer; pyrosetta_installer.install_pyrosetta()'
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pyrosetta_installer'

How to fix this?

@roccomoretti
Copy link
Member

I would guess that there was an issue with downloading and installing the pyrosetta-installer package.

When you run the first line, what is the output? Are there any error or warning messages?

Here's what I get for a successful install:

Collecting pyrosetta_installer
  Downloading pyrosetta_installer-0.1.1-py3-none-any.whl.metadata (1.6 kB)
Downloading pyrosetta_installer-0.1.1-py3-none-any.whl (3.9 kB)
Installing collected packages: pyrosetta_installer
Successfully installed pyrosetta_installer-0.1.1

If you're missing that last "Successfully installed" line, then something went wrong with the pip install, and you should check the warning and error messages to see what needs to be fixed.

@jjz2023
Copy link
Author

jjz2023 commented Oct 8, 2024

Yes, I got the five lines as you listed after I executed "pip install pyrosetta-installer". After I ran the second commend line "python -c 'import pyrosetta_installer; pyrosetta_installer.install_pyrosetta()'", I got the following three lines:
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'pyrosetta_installer'

@jjz2023 jjz2023 changed the title Pyrosetta installation problen Pyrosetta installation problem Oct 8, 2024
@roccomoretti
Copy link
Member

That's odd. The best I can guess is that the python associated with your pip is not the python associated with your python.

If you can run a which pip and a which python, that should tell you where the programs your shell is running for each are located. Ideally they should be in the same directory.

Another approach is to run pip with the python command. Try a python -m pip install pyrosetta-installer -- that should run the pip associated with your python command. If that command fails, try running python -m ensurepip --upgrade and then re-running it.

@jjz2023
Copy link
Author

jjz2023 commented Oct 9, 2024

Thanks for your suggestions. I have two versions (3.9 and 3.12) of python in my miniconda3/lib and python_installer was in both site_packages folders. I ran with specific version of python as "python3.9 -c 'import pyrosetta_installer; pyrosetta_installer.install_pyrosetta()'" commend line and it worked. Thanks again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants