How do I install Numba?

87 views
Skip to first unread message

Fausto A. A. Barbuto

unread,
Feb 27, 2024, 11:40:13 PMFeb 27
to spyd...@googlegroups.com

Hi,

Spyder comes with several pre-installed packages by default, but Numba is an exception. I have 
several scripts that use this package and want to have it installed. How can that be done?

Putting it as a more general question: how do I install packages with/on Spyder?

F.



Tetuko Kurniawan

unread,
Feb 28, 2024, 4:26:40 AMFeb 28
to spyder
Try to check this (previous) email:


bests,
TK

Fausto A. A. Barbuto

unread,
Feb 28, 2024, 10:57:11 AMFeb 28
to spyd...@googlegroups.com

Very clever. However, there a few additional complications here:

1. This is a Windows 11 installation and I'm no longer using Conda trash (sorry, but I
forgot to mention this);

2. Numba is Numba. It's installation is a bit more convoluted because it has a tradition
of lagging behind its dependencies (Numpy being one of them). Make a mistake and your
whole Spyder setup gets compromised;

3. What (might have) worked in the past doesn't necessarily work today.

Regards,

F.


--
You received this message because you are subscribed to the Google Groups "spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/4380f90e-0b98-4bfa-90c8-b59d6587cb8an%40googlegroups.com.

Tetuko Kurniawan

unread,
Feb 28, 2024, 12:18:11 PMFeb 28
to spyd...@googlegroups.com
hi,

i also use win11.
1. spyder standdalone
2. install python on windows
3. then use pip to install numba and manage package version/dependencies.
you can create your own environment.
4. change interpreter in spyder to your python installation.

best









You received this message because you are subscribed to a topic in the Google Groups "spyder" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/spyderlib/ui0HfahM-UM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to spyderlib+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/CA%2BB6aWEV-U2UoQEoFLr7pqdjXc6rhEGW_L-kVLT7qUsKwKfA-A%40mail.gmail.com.

Fausto A. A. Barbuto

unread,
Feb 29, 2024, 9:07:47 PMFeb 29
to spyd...@googlegroups.com

Hello,

On Wed, Feb 28, 2024 at 2:18 PM Tetuko Kurniawan <tetuk...@gmail.com> wrote:
 
i also use win11.
1. spyder standdalone
2. install python on windows

I had a Python installation well before I downloaded Spyder's installer.
 
3. then use pip to install numba and manage package version/dependencies.

Easier said than done. But I had tried this, too. Like,

python -m pip --target C:\Progra~1\Spyder\pkgs

(pkgs is where packages like numpy, etc, sit) and got tons of error messages rolling up 
my screen. I will not copy & paste them here, obviously. The naked truth is that Spyder's
Python installation should come with its own pip -- but it doesn't.
 
you can create your own environment.

No, thanks. 😁 I have no bias against having a separate environment, though. I simply 
never had one before and ain't looking for extra trouble.
 
4. change interpreter in spyder to your python installation.

I did this too, and it didn't work. I wonder if I did it the right way. Or if there's a trick I
am unaware of. 

best

Thanks for the exchange.

F. 

Fausto A. A. Barbuto

unread,
Feb 29, 2024, 9:35:41 PMFeb 29
to spyd...@googlegroups.com

Hello,

I finally found a way to install numba on Spyder. It was easier than I thought.

1. Download get-pip.py:


2. Move get-pip.py into C:\...\Spyder\Python

3. Run (on a cmd window with Administrator rights, if necessary):

cd C:\...\Spyder\Python
python get-pip.py

This will get pip and will place it in C:\...\Spyder\Python\Scripts

4. Change directory to the aforementioned folder and run pip:

cd Spyder
pip install -U numba

Sit back and watch. It should work with no error messages.

Should Spyder be open, close it and open it again (I mean, restart it). Everything 
should be fine now.

Fausto



Reply all
Reply to author
Forward
0 new messages