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

cannot import tyxe #17

Open
nlebang opened this issue Jun 21, 2022 · 7 comments
Open

cannot import tyxe #17

nlebang opened this issue Jun 21, 2022 · 7 comments

Comments

@nlebang
Copy link

nlebang commented Jun 21, 2022

Dear,
I have used pip install tyxe but cannot import it. >> no such module.
How can I resolve this problem?
Thanks.

@hpplyt
Copy link
Collaborator

hpplyt commented Jun 21, 2022

Hi, it's a bit hard to tell what might have gone wrong without more details. Did you run pip install -e . after setting up a conda environment?

If you have all of the dependencies installed, all you need is to make sure that the directory where the tyxe module lives is in your Python's system path. On Linux you can add the directory to your PYTHONPATH environment variable, see e.g. here.

@DengyingFu
Copy link

This error occurs when I use the pip install -e command after running the command line to activate the environment. Is there more detailed installation steps under windows.? Thank you.
ERROR: file:///C:/Users/fu%27d%27y does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

@hpplyt
Copy link
Collaborator

hpplyt commented Jan 11, 2023

I'm afraid I haven't used Python under Windows before, so can't help with this unfortunately.

Would registering the package on pypi solve this for you so you could do a normal pip install tyxe?

@Cam-B04
Copy link
Contributor

Cam-B04 commented Jan 11, 2023

Did you try to update setuptools pip and wheel ? I had a similar problem with other packages as well.
Try:
pip install -U setuptools pip wheel
After the installation retry installing Tyxe with:
pip install -e .

@DengyingFu
Copy link

Thanks for your response! but I'd also like to ask could I change the versions of torch and torchvision in install_requires in setup.py. Does it support torch 1.12.1+cu116 and torchvision 0.13.1+cu116. My cuda is version 11.6

@DengyingFu
Copy link

Thank you Cam-B04,I solved the problem by your suggestion!

@hpplyt
Copy link
Collaborator

hpplyt commented Jan 16, 2023

Glad the installation problem is solved! I haven't tested any newer pytorch/torchvision versions than the ones in the setup.py, so can't make any promises, but would be surprised if moving to a newer minor version broke anything.

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

4 participants