GithubHelp home page GithubHelp logo

p005- not able to import nnfs about nnfsix HOT 7 CLOSED

sentdex avatar sentdex commented on July 17, 2024
p005- not able to import nnfs

from nnfsix.

Comments (7)

daniel-kukiela avatar daniel-kukiela commented on July 17, 2024

Hi,
There might be numerous reasons for this. I don't see filenames, so I think you're using notebook maybe? What's your operating system? My current best guess is you have multiple Python versions installed and pip you used does not match interpreter you're using.

from nnfsix.

rafaelblevin821 avatar rafaelblevin821 commented on July 17, 2024

Hi Daniel, thanks for the reply. I am using a regular .py file, using python 3.9.12 on pycharm, I have also tried it in VScode with the same issue. There may be an issue around my set-up with wsl-ubuntu. I have python installed through wsl ubuntu and use windows for my ide's... but my issue with that theory is that all of my other pip-installed modules work. Could you maybe check that everything is up to date on your side? Thank you.

from nnfsix.

daniel-kukiela avatar daniel-kukiela commented on July 17, 2024

We haven't changed this module for months now, nothing has changed on our side.
How did you install this module? What's the exact command?
Please run it again and show the exact output you are getting.
Also please provide the output of these 2 commands: where python and where pip.

from nnfsix.

rafaelblevin821 avatar rafaelblevin821 commented on July 17, 2024

We haven't changed this module for months now, nothing has changed on our side. How did you install this module? What's the exact command? Please run it again and show the exact output you are getting. Also please provide the output of these 2 commands: where python and where pip.

Hi Daniel,

We haven't changed this module for months now, nothing has changed on our side.

What I mean by checking everything is up to date on your side is just to check the license/certificate on pypi.

How did you install this module? What's the exact command?

I used pip install nnfs

Please run it again and show the exact output you are getting.

It seems to be installed, when I run it in ubuntu bash I get:

Neural Networks from Scratch in Python Tool.

Basic usage:
nnfs command [parameter1 [parameter2]]

Detailed usage:
nnfs info | code video_part [destination]

Commands:
  info    Prints information about the book
  code    Creates a file containing the code of given video part
          in given location. Location is optional, example:
          nnfs code 2 nnfs/p02.py
          will create a file p02.py in a nnfs folder containing
          the code of part 2 of video tutorial

... but it doesn't recognize the nnfs module in pycharm or vscode.

Traceback (most recent call last):
  File "\\wsl$\Ubuntu\home\david\NN_from_scratch\my_first_NN1.py", line 3, in <module>
    import nnfs
ModuleNotFoundError: No module named 'nnfs'

Process finished with exit code 1

Also please provide the output of these 2 commands: where python and where pip.

C:\Users\B00865398>where python
C:\Program Files\Python39\python.exe
C:\Users\B00865398\AppData\Local\Programs\Python\Python310\python.exe
C:\Users\B00865398\AppData\Local\Microsoft\WindowsApps\python.exe

C:\Users\B00865398>where pip
C:\Program Files\Python39\Scripts\pip.exe
C:\Users\B00865398\AppData\Local\Programs\Python\Python310\Scripts\pip.exe

from nnfsix.

daniel-kukiela avatar daniel-kukiela commented on July 17, 2024

What I mean by checking everything is up to date on your side is just to check the license/certificate on pypi.

We do not control pypi, it's Python's package index. If something was wrong with it, you could not install any package.


Did you try pip install nnfs on Windows or in WSL? I have not much experience with WSL, but I imagine you have to install packages separately on Windows and WSL.
In PyCharm/VSC check which interpreter it is using and install the nnfs for this interpreter. If you are using a virtual environment, install it in the virtual environment.
In general, you have some mixed Python interpreter installations and you have to install nnfs for each you are using.

from nnfsix.

rafaelblevin821 avatar rafaelblevin821 commented on July 17, 2024

What I mean by checking everything is up to date on your side is just to check the license/certificate on pypi.

We do not control pypi, it's Python's package index. If something was wrong with it, you could not install any package.

Did you try pip install nnfs on Windows or in WSL? I have not much experience with WSL, but I imagine you have to install packages separately on Windows and WSL. In PyCharm/VSC check which interpreter it is using and install the nnfs for this interpreter. If you are using a virtual environment, install it in the virtual environment. In general, you have some mixed Python interpreter installations and you have to install nnfs for each you are using.

Hi Daniel, the issue is now solved,
It was indeed the wrong interpreter. The one I normally use on wsl ubuntu (3.9) had nnfs installed, but the version linked to pycharm and vscode (3.10) did not have it installed.

Thanks for your help.

from nnfsix.

daniel-kukiela avatar daniel-kukiela commented on July 17, 2024

I'm glad we solved that :)
Hope you'll enjoy the book or the videos (I'm not sure which one you;re following) :)

from nnfsix.

Related Issues (14)

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.