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

Getting "no module named gin.torch" when doing "import gin.torch" #63

Closed
pseeth opened this issue Mar 31, 2020 · 2 comments
Closed

Getting "no module named gin.torch" when doing "import gin.torch" #63

pseeth opened this issue Mar 31, 2020 · 2 comments

Comments

@pseeth
Copy link

pseeth commented Mar 31, 2020

I set up a new environment using this sequence of commands:

conda create -n test-gin python=3.7
conda activate test-gin
pip install torch
pip install gin-config
python -c "import gin.torch"

This results in the following:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'gin.torch'

Unsure what's going wrong.

Thanks in advance for the help! gin is quite cool and working well for me otherwise.

@sguada
Copy link
Collaborator

sguada commented Mar 31, 2020

Try installing directly from github, we need to push a new pip package.

pip install git+https://https://github.com/google/gin-config

@pseeth
Copy link
Author

pseeth commented Mar 31, 2020

Great, it works! Thanks.

@pseeth pseeth closed this as completed Mar 31, 2020
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