Comments (7)
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.
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.
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.
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
andwhere 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
andwhere 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.
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.
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.
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)
- Jupiter Notebook
- Jupyter Notebook HOT 3
- Keep getting 'Layer_Dense' object has no attribute 'weights' with the Lesson 5 python code HOT 2
- Google Colab error: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all() HOT 1
- p005-ReLU-Activation.c Program does not use RelU activation function correctly HOT 2
- can you share code pls for pythonprogramming.net/machine-learning-tutorial-python-introduction HOT 1
- python part 8 code error HOT 3
- Test
- p005-ReLU-Activation.js Dimension mismatch in multiplication HOT 1
- Contribution
- Spiral Data HOT 2
- Question
- NeuralNet scratch HOT 1
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 nnfsix.