Please help in resolving this error.
Asked
Active
Viewed 3,623 times
0

Priyah
- 13
- 1
- 5
-
What Python environment is your Jupyter Notebook running? – BrokenBenchmark Feb 23 '22 at 03:31
-
how do i check that? – Priyah Feb 23 '22 at 03:32
-
https://stackoverflow.com/q/40694528/17769815 – BrokenBenchmark Feb 23 '22 at 03:32
-
yes it is working with 3.10.2. I even had uninstalled the 3.10 version still it is working with that. – Priyah Feb 23 '22 at 03:50
-
how do I change the environment to 3.9? – Priyah Feb 23 '22 at 03:51
-
https://stackoverflow.com/a/68363836/17769815 – BrokenBenchmark Feb 23 '22 at 04:04
-
i have tried all that doesnt seem to work plus I do not have anaconda. – Priyah Feb 23 '22 at 04:35
1 Answers
0
Use pip to install the numpy first. Copy and run this code in your first cell.
!pip install numpy
If you need to upgrade pip then copy and run the below command in your first cell followed by the above command.
!python3 -m pip install --upgrade pip
You may have to restart your kernal after updating pip. Use restart option from Jupyter Notebook kernal
option. see screenshot for reference.
Another Option
If you want to downgrade your python from 3.10 to 3.9, as numpy is yet not supported by python 3.10. Then you can downgrade your python version from 3.10 to 3.9 via conda.
!conda install python=3.9

Shaida Muhammad
- 1,428
- 14
- 25
-
I am getting the same issue agin I need to first change the python version from 3.10 to 3.9 somehow please help in doing that. ERROR: Failed building wheel for numpy Failed to build numpy ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects WARNING: You are using pip version 21.3.1; however, version 22.0.3 is available. You should consider upgrading via the '/Library/Frameworks/Python.framework/Versions/3.10/bin/python3 -m pip install --upgrade pip' command. Note: you may need to restart the kernel to use updated packages. – Priyah Feb 23 '22 at 04:19
-
-
no sorry, i do not have anaconda I am a beginner i started this today and had 2 versions of python installed which lead to all the trouble and then realized NumPy works only with 3.9. – Priyah Feb 23 '22 at 04:30
-
-
Install Anaconda. Then you can use whatever version of python for your project. – Shaida Muhammad Feb 23 '22 at 05:24