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

python cannot find installed module #297

Open
dberardo-com opened this issue Jul 28, 2023 · 2 comments
Open

python cannot find installed module #297

dberardo-com opened this issue Jul 28, 2023 · 2 comments
Labels

Comments

@dberardo-com
Copy link

i have installed numpy using pip.
running python locally i can import it without problems, but when pyshell runs, then the python script cannot find the numpy module. the user running the nodejs process is the same as the user which has installed the packages.

packages are located under:

python -m site
sys.path = [
...
'/usr/local/lib/python3.11/site-packages',
]

how come ?

@dberardo-com
Copy link
Author

it seems that the path "'/usr/local/lib/python3.11/site-packages'," is missing under sys.path .. is there a way to add it from the pysehll options ?

@Pavan-Rajesh
Copy link

Pavan-Rajesh commented Aug 6, 2023

create a virtual env in the same directory
to create
run the following commands

pip install virtualenv
virtualenv venv
source  venv/scripts/activate


pip install numpy

now run the file it should work

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

No branches or pull requests

2 participants