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

No module named 'castle' after installed the gcastle == 1.0.3rc2 #48

Closed
matthewmeng opened this issue Feb 17, 2022 · 4 comments
Closed

Comments

@matthewmeng
Copy link

Hi I already installed gcastle with pip install gcastle==1.0.3rc2.
But when I try to run the demo program like anm_demo.py.
There still an error said
from castle.common import GraphDAG ModuleNotFoundError: No module named 'castle'

Anyone know why there is a ModuleNotFoundError even I have installed the package already?

@shaido987
Copy link
Collaborator

shaido987 commented Feb 17, 2022

It could be that you have multiple python environments/versions available on your system and installed gCastle on another one. You can try to run python -m pip gcastle==1.0.3rc2 and see if it works.

There are some more helpful tips here that you can try if the above does not work out: https://stackoverflow.com/questions/40834656/installed-module-using-pip-not-found.

@matthewmeng
Copy link
Author

Thanks, I've tried the python -m pip gcastle==1.0.3rc2 but still didn't work.
will try the virtual env to see if it will work

@shaido987
Copy link
Collaborator

Make sure that the python you use to run the code is the same as the one you installed with. It's very easy to get confused if there are multiple versions. If you use something like PyCharm you should be able to install the package directly in the interpreter settings (or change which python interpreter is used to run with).

@matthewmeng
Copy link
Author

ple versions. If you use someth

it works now, thx mate

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