stanfordnqp/spins-b

Issues while installing spins-b on Anaconda on window 10

Closed this issue · 8 comments

Hi,
I tried to install spins-b on Python 3.7.4 by command pip install ./spins-b. But it is showing that it "failed building wheel for gdspy" . I am using window 10.
I need help regarding that.

Thanks

Please follow the installation directions for Windows for gdspy: https://github.com/heitzmann/gdspy

I can install the spinsb, but I couldn't run it because of ModuleNotFoundError: No module named 'spins'

And put the run file in the same folder, although there is no error, but the program does not respond

Hi, is the ModuleNotFoundError: No module named 'spins' issue solved? I also got the same problem.

Hi @kaipengliuHIT , @msu627 , and @Guobiao-Tang

You could solve this issue by either:

1- Simply copy-pasting spins folder inside the directory that has the Python file you are executing.

2- Adding spins as a package in the Python paths. Whenever you import a package, Python looks for it in some directories on your PC. You can find them by executing the following on Python:

import sys
print (sys.path)

This will output the paths that Python looks for when you use a package (such as spins). You may copy spins to one of those paths, or you may define a new path that has spins. How this is done depends on your operating system, for linux you edit your .bashrc file and add this to it

export PYTHONPATH="${PYTHONPATH}:/my/other/path"

You may check this for further details: https://stackoverflow.com/questions/3402168/permanently-add-a-directory-to-pythonpath

Hi @kaipengliuHIT , @msu627 , and @Guobiao-Tang

You could solve this issue by either:

1- Simply copy-pasting spins folder inside the directory that has the Python file you are executing.

2- Adding spins as a package in the Python paths. Whenever you import a package, Python looks for it in some directories on your PC. You can find them by executing the following on Python:

import sys
print (sys.path)

This will output the paths that Python looks for when you use a package (such as spins). You may copy spins to one of those paths, or you may define a new path that has spins. How this is done depends on your operating system, for linux you edit your .bashrc file and add this to it

export PYTHONPATH="${PYTHONPATH}:/my/other/path"

You may check this for further details: https://stackoverflow.com/questions/3402168/permanently-add-a-directory-to-pythonpath

Thank you!!!

Closing this.