Closed TonderaiZR closed 5 years ago
It's not really meant to be installed. I suggest cloning the repo from GitHub and working in that directory. There are instructions in the preface.
Please let me know if that helps.
Allen
On Sat, Apr 2, 2016 at 8:59 PM, Tondy notifications@github.com wrote:
Hello
How do I install the thinkdsp module on computer. So I can call the functions.
Cheers
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/AllenDowney/ThinkDSP/issues/20
Hello Allen Thank you very much. I now have it working with python notebook.
I am new to Python/GitHub/Jupyter/Binder/whatever. I don't even understand "cloning the repo from GitHub and working in that directory". I've tried the instructions in the preface of your ThinkDSP book. Excellent work, by the way. I've tried three different versions of Python in Windows and the version that comes with a Raspberry Pi. All I get are cryptic error messages, such as "ModuleNotFoundError: No module named 'thinkdsp'". Any suggestions on what I can try next?
Tom O'Haver, toh@umd.edu https://terpconnect.umd.edu/~toh/spectrum/SignalProcessingTools.html
Here is my manual 'hacks' to make it work.
git clone https://github.com/AllenDowney/ThinkDSP.git
code
folder
where python
command in cmd and it will show the path. For example, it gives me : C:\Users\henzo\AppData\Local\Programs\Python\Python36\python.exe
.
Copy C:\Users\<PC names>\AppData\Local\Programs\Python\<python version>\
to windows explorer and press enter. Go to Lib\site-packages
and you will see names of all Python packages you've installed.
code
folder hereAllenDowney.
in front of any import that starts with think
, and add as think
as closing. If you find import thinkdsp
, you should rename it to import AllenDowney.thinkdsp as thinkdsp
. When you want to 'install' this module to another computer, just copy the AllenDowney folder and move it to C:\Users\<PC names>\AppData\Local\Programs\Python\<python version>\Lib\site-packages
Thanks for that very specific recommendation. I'll try it.
@henzosabiq Good advice, thank you. However that method did not work 100% for me, but I have some supplementary steps that will get it to work:
site.py
in the site-packages
directory.sys.path.append( 'C:\<path to Python install>\Lib\site-packages\<name of new package>\' )
site.py is imported automatically whenever the Python CLI is executed, so now you should be able to (in this case) successfully use the pure import thinkdsp
statement in your code.
Please I have problem run the import thinkdsp.It still produces error.No module found
Please I have problem run the import thinkdsp.It still produces error.No module found please run pip install thinkx in anaconda prompt, it will install think dsp
pip install thinkx
this works! thanks
Try to install the "thinkx" as it mentions in this link https://anaconda.org/conda-forge/thinkx
It's worked for me!
This solution for the Anaconda and pycharm users.
To install this package with conda run one of the following: conda install -c conda-forge thinkx conda install -c conda-forge/label/cf201901 thinkx
Try to install the "thinkx" as it mentions in this link https://anaconda.org/conda-forge/thinkx It's worked for me! This solution for the Anaconda and pycharm users.
To install this package with conda run one of the following: conda install -c conda-forge thinkx conda install -c conda-forge/label/cf201901 thinkx
hi~ I tried to run like this in pycharm, but it still fails. If you can, can you take a screenshot of where you added these two lines of code?
Hello
How do I install the thinkdsp module on computer. So I can call the functions.
Cheers