Git Product home page Git Product logo

Comments (11)

henzosabiq avatar henzosabiq commented on August 16, 2024 1

Here is my manual 'hacks' to make it work.

  1. Clone the repository using git bash
    git clone https://github.com/AllenDowney/ThinkDSP.git
  2. Copy all python files (.py) on the code folder
    image
    image
  3. 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.
    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.
    image
  4. Make a new folder. I name it "AllenDowney" because I respect his amazing work.
  5. Paste all the python files from code folder here
  6. Open all of the python files. Add AllenDowney. 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

from thinkdsp.

AllenDowney avatar AllenDowney commented on August 16, 2024

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.

TonderaiZR avatar TonderaiZR commented on August 16, 2024

Hello Allen Thank you very much. I now have it working with python notebook.

from thinkdsp.

TomOHaver avatar TomOHaver commented on August 16, 2024

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.

TomOHaver avatar TomOHaver commented on August 16, 2024

Thanks for that very specific recommendation. I'll try it.

from thinkdsp.

VicerExciser avatar VicerExciser commented on August 16, 2024

@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:

  1. Follow above steps 1:5.
  2. Rather than modifying the new package's module imports as suggested in step 6, locate the file site.py in the site-packages directory.
  3. 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.

patukes avatar patukes commented on August 16, 2024

Please I have problem run the import thinkdsp.It still produces error.No module found

from thinkdsp.

talhaanwarch avatar talhaanwarch commented on August 16, 2024

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.

dan54956 avatar dan54956 commented on August 16, 2024

pip install thinkx

this works! thanks

from thinkdsp.

janarthan-j avatar janarthan-j commented on August 16, 2024

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.

psjpang avatar psjpang commented on August 16, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.