Comments (11)
Here is my manual 'hacks' to make it work.
- Clone the repository using git bash
git clone https://github.com/AllenDowney/ThinkDSP.git
- Copy all python files (.py) on the
code
folder
- Locate where you install Python. On Windows, you can try
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
.
CopyC:\Users\<PC names>\AppData\Local\Programs\Python\<python version>\
to windows explorer and press enter. Go toLib\site-packages
and you will see names of all Python packages you've installed.
- Make a new folder. I name it "AllenDowney" because I respect his amazing work.
- Paste all the python files from
code
folder here - Open all of the python files. Add
AllenDowney.
in front of any import that starts withthink
, and addas think
as closing. If you findimport thinkdsp
, you should rename it toimport 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
from thinkdsp.
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 [email protected] 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
#20
from thinkdsp.
Hello Allen Thank you very much. I now have it working with python notebook.
from thinkdsp.
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, [email protected]
https://terpconnect.umd.edu/~toh/spectrum/SignalProcessingTools.html
from thinkdsp.
Thanks for that very specific recommendation. I'll try it.
from thinkdsp.
@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:
- Follow above steps 1:5.
- Rather than modifying the new package's module imports as suggested in step 6, locate the file
site.py
in thesite-packages
directory. - Add the following line after the import statements for site.py:
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.
from thinkdsp.
Please I have problem run the import thinkdsp.It still produces error.No module found
from thinkdsp.
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
from thinkdsp.
pip install thinkx
this works! thanks
from thinkdsp.
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
from thinkdsp.
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?
from thinkdsp.
Related Issues (20)
- "No handles with labels found to put in legend" issue HOT 8
- 2 small issues I noticed (inverted lines of code in book + pcolor graph doesn't show) HOT 4
- Question about decaying noise generation HOT 1
- Anaconda distro link update HOT 1
- Playback audio HOT 5
- Input 18 of the code/voss.ipynb, the Barlett Method function, fails with a type error HOT 1
- TypeError at use of make_spectrogram HOT 3
- How can I read from input audio devide and find decible value ?
- Book References HOT 1
- correlation wave after use shift in time HOT 1
- Correction on Chapter 5 test functions HOT 1
- fb.csv and FB.csv lead to duplicate file error on windows and modified state of fb.csv right after cloning. HOT 3
- Spectrum convolve issue - even number of samples HOT 1
- fractions.gcd() is replaced by math.gcd() in python3.5 HOT 1
- if read_wave() then write(), the new audio is different in amp. HOT 1
- Corrections from Luís Guimarães HOT 1
- Github ,need to upgrade me HOT 1
- How to apply SNR to Guassian White Noise? HOT 3
- Installation of thinkdsp HOT 7
- AttributeError exception being thrown in thinkdsp.py call to numpy HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from thinkdsp.