You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to run the python code using pyenv and vim with the plugin #1193
I am using Python with pyenv . I have activated the env, but when I run the code in the script file with vim, an error occurs.
/biostack/tools/devtools/pyenv/versions/3.10.13/envs/scGPT/lib/python3.10/site-packages/scgpt/__init__.py|18 error| in <module> from . import model, tokenizer, scbank, utils, tasks
/biostack/tools/devtools/pyenv/versions/3.10.13/envs/scGPT/lib/python3.10/site-packages/scgpt/model/__init__.py|1 error| in <module> from .model import (
/biostack/tools/devtools/pyenv/versions/3.10.13/envs/scGPT/lib/python3.10/site-packages/scgpt/model/model.py|5 error| in <module> import torch
/biostack/tools/devtools/pyenv/versions/3.10.13/envs/scGPT/lib/python3.10/site-packages/torch/__init__.py|17 error| in <module> import ctypes
/biostack/tools/devtools/pyenv/versions/3.10.13/lib/python3.10/ctypes/__init__.py|8 error| in <module> from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes'
But when I run the code in the Python interactive environment. No error reported.
Hi @xiangpin , sorry for taking so long to give you an answer.
Can you please try the version from the branch of this PR ?
I hope it solves the problem.
Thanks!
Activity
diraol commentedon May 24, 2026
Hi @xiangpin , sorry for taking so long to give you an answer.
Can you please try the version from the branch of this PR ?
I hope it solves the problem.
Thanks!