Title: How to run the python code using pyenv and vim with the plugin · Issue #1193 · python-mode/python-mode · GitHub
Open Graph Title: How to run the python code using pyenv and vim with the plugin · Issue #1193 · python-mode/python-mode
X Title: How to run the python code using pyenv and vim with the plugin · Issue #1193 · python-mode/python-mode
Description: 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 e...
Open Graph Description: 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...
X Description: 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...
Opengraph URL: https://github.com/python-mode/python-mode/issues/1193
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to run the python code using pyenv and vim with the plugin","articleBody":"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. \n\n\u003cimg width=\"363\" height=\"90\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/e3910748-9359-41d3-83b9-e6dab5a55a78\" /\u003e\n\n\n```\n/biostack/tools/devtools/pyenv/versions/3.10.13/envs/scGPT/lib/python3.10/site-packages/scgpt/__init__.py|18 error| in \u003cmodule\u003e from . import model, tokenizer, scbank, utils, tasks\n/biostack/tools/devtools/pyenv/versions/3.10.13/envs/scGPT/lib/python3.10/site-packages/scgpt/model/__init__.py|1 error| in \u003cmodule\u003e from .model import (\n/biostack/tools/devtools/pyenv/versions/3.10.13/envs/scGPT/lib/python3.10/site-packages/scgpt/model/model.py|5 error| in \u003cmodule\u003e import torch\n/biostack/tools/devtools/pyenv/versions/3.10.13/envs/scGPT/lib/python3.10/site-packages/torch/__init__.py|17 error| in \u003cmodule\u003e import ctypes\n/biostack/tools/devtools/pyenv/versions/3.10.13/lib/python3.10/ctypes/__init__.py|8 error| in \u003cmodule\u003e from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes'\n```\n\n\u003cimg width=\"1760\" height=\"940\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/3f0aed22-6b0c-4c36-a7a0-c083f1987ef9\" /\u003e\n\nBut when I run the code in the Python interactive environment. No error reported. \n\n\u003cimg width=\"616\" height=\"90\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/0da532a3-10b2-42e9-96fb-502f70bff441\" /\u003e","author":{"url":"https://github.com/xiangpin","@type":"Person","name":"xiangpin"},"datePublished":"2025-11-19T12:47:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/1193/python-mode/issues/1193"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b3996558-3a00-36c2-cf6b-041db7acb3a7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9910:DF47A:26DDF2E:322A8D9:69747C52 |
| html-safe-nonce | 069c0a3193780bac466cb1f1696e062a851b697e2c1909bfb32f6de7a38eb782 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTEwOkRGNDdBOjI2RERGMkU6MzIyQThEOTo2OTc0N0M1MiIsInZpc2l0b3JfaWQiOiIxMjk2MTI4NTQ5Mzg3MDA5MTA2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 9882668fbed24e8d48ca9bedb02d48472c3aff0d3a41ea016d72894d46e7f73c |
| hovercard-subject-tag | issue:3642577689 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-mode/python-mode/1193/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2b2877336320a43e636b22ad48d5865b942ce533f0adf82d99e0566eb3b05729/python-mode/python-mode/issues/1193 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2b2877336320a43e636b22ad48d5865b942ce533f0adf82d99e0566eb3b05729/python-mode/python-mode/issues/1193 |
| og:image:alt | 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... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | xiangpin |
| hostname | github.com |
| expected-hostname | github.com |
| None | e0b95d743b7672c9ac0e1032d5f117950182dc164a83434a7db86510e8f0b37c |
| turbo-cache-control | no-preview |
| go-import | github.com/python-mode/python-mode git https://github.com/python-mode/python-mode.git |
| octolytics-dimension-user_id | 13965098 |
| octolytics-dimension-user_login | python-mode |
| octolytics-dimension-repository_id | 2408911 |
| octolytics-dimension-repository_nwo | python-mode/python-mode |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 2408911 |
| octolytics-dimension-repository_network_root_nwo | python-mode/python-mode |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 56fe7e2e8de6e57740bca50402351ea656f7a4bf |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width