Python Forum
Problem pycharm +anaconda (numba)
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem pycharm +anaconda (numba)
#1
I have install numba put pycharm still tell me its not.   Wall 

pycharm error:
Error:
Traceback (most recent call last):   File "C:/Users/JASon/PycharmProjects/untitled1/Test.py", line 1, in <module>     from numba import jit ImportError: No module named 'numba'
if I type 'conda install numpy' in windows Command Prompt:

All requested packages already installed.
packages in environment at c:\ProgramData\Anaconda3:
numba      0.32.0          np111py36_0

Help please.
Reply
#2
Is it possible that you have created a new virtual environment with the project you have opened in PyCharm?
I don't use anaconda, but it may be that it requires some special setup in PyCharm to use it...
try these:
https://docs.continuum.io/anaconda/ide_i...on#pycharm
http://stackoverflow.com/questions/28390...in-pycharm
Reply
#3
These errors usually arise when more than one version of python are installed.
I am assuming  conda is like pip (probably is actually)


For example
say you configure PyCharm to run with Pyrthon 3.6 but the python in your path
is 2.7 if you run your updater (pip on my system),

I would get that warm and fuzzy feeling that all was well, because the install had no errors.
In fact, what actually happened is that I installed the package for python 2.7 (because that's the one in the path)
and not for 3.6 (what I am running in PyCharm)

There are there are several solutions here:
  • Change your path to point to the python 3.6
  • Run the updater with full path, so your sure you're running the correct one.
  • Rename your updater to reference the python version (conda36 for example)
Reply
#4
thanks J.crater it's working now.
Reply
#5
I am glad you sorted it out JAson. Can you tell us what the problem was and how you solved it, for potential future reference?
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Why Cuda from numba package is unavailable? AlekseyPython 2 2,388 Nov-10-2020, 08:03 AM
Last Post: AlekseyPython

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020