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

On windows platform, plugins.py got " ModuleNotFoundError: No module named 'venv'" error #572

Closed
ultimatech-cn opened this issue Sep 30, 2023 · 0 comments · Fixed by #575
Assignees

Comments

@ultimatech-cn
Copy link

ultimatech-cn commented Sep 30, 2023

When using facechain on windows platform

File "D:\dev\sd160test\system\python\lib\site-packages\modelscope\models\base\base_model.py", line 16, in
from modelscope.utils.plugins import (register_modelhub_repo,
File "D:\dev\sd160test\system\python\lib\site-packages\modelscope\utils\plugins.py", line 12, in
import venv
ModuleNotFoundError: No module named 'venv'

Describe the bug
On windows there is no default venv package, normally use virtualenv instead,

I solved problem by change the code as following
import virtualenv as venv
and pip install virtualenv

@ultimatech-cn ultimatech-cn changed the title On windows platform, plugins.py got " On windows platform, plugins.py got " ModuleNotFoundError: No module named 'venv'" error Sep 30, 2023
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

Successfully merging a pull request may close this issue.

6 participants