Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm can't find a reference yet it definitely exists

I'm trying to use a thing in numpy.random which I import using from numpy.random import normal. PyCharm tells me this is an unresolved reference despite being able to find other things in numpy.random such as numpy.random.random.

Whenever I open up a Python shell and type from numpy.random import normal it runs fine and I can use normal just as I desire in the terminal.

Why is this?

like image 340
Nanor Avatar asked Feb 13 '15 18:02

Nanor


1 Answers

Try File->Invalidate Caches/Restart...

This worked for me.

like image 68
geekly Avatar answered Oct 02 '22 04:10

geekly