Skip to content

After installation python still raising ModuleNotFoundError #35

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

Closed
HaoLuo2627 opened this issue Mar 10, 2025 · 4 comments
Closed

After installation python still raising ModuleNotFoundError #35

HaoLuo2627 opened this issue Mar 10, 2025 · 4 comments

Comments

@HaoLuo2627
Copy link

After I ran the command "pip install lmstudio", my program still raises ModuleNotFoundError. When I see the site-packages folder in my virtual environment, there is only a "lmstudio-0.0.1.dist-info" folder, and there is no "lmstudio" source code folder with "init.py" in it. I changed the pip index url from "https://mirrors.aliyun.com/pypi/simple" to "https://pypi.org/simple", but the error still exists. Please check the issue and give me some suggestions, thank you!

@ncoghlan
Copy link
Collaborator

Had you previously tried installing lmstudio into that virtual environment prior to 2025-02-28? (Feb 28 is when lmstudio 1.0.0 was published to PyPI).

Before then, lmstudio 0.0.1 only existed as a placeholder distribution package with no actual contents, and your dist-info folder name indicates that is the version that is currently installed in the virtual environment.

Regardless, running pip install --upgrade lmstudio should replace the placeholder installation with the latest version.

@HaoLuo2627
Copy link
Author

No, today is my first installation attempt.
After I ran pip install --upgrade lmstudio, pip raises Requirement already satisfied: lmstudio in c:\users\luohao\.conda\envs\opencompass\lib\site-packages (0.0.1) both from index urls pypi.org and mirrors.aliyun.com. It seems that pip hasn't found the lmstudio in version 1.0.0.

@HaoLuo2627
Copy link
Author

I figured it out, maybe it's because my Python version is 3.10. When I changed a different virtual environment with Python 3.12, the installation succeeded. Thank you for your response.

@ncoghlan
Copy link
Collaborator

Follow up:

  • 1.1.0 added Python 3.10 support
  • the placeholder package that was being installed on older versions has been yanked (so 3.9 and earlier will now get an installation failure)

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