Discussion:
[theano-users] ModuleNotFoundError: No module named 'pkg_resources'
Karin Westin
2018-01-14 15:32:51 UTC
Permalink
Hi!

I'm going through the theano tutorial, and when running the function
theano.scan, I get the following error:

Traceback (most recent call last):
File "C:\Users\Karin\Desktop\test.py", line 10, in <module>
results, updates = theano.scan(lambda v: T.tanh(T.dot(v, W) + b_sym),
sequences=X)
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\scan_module\scan.py",
line 1005, in scan
from theano import gpuarray
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\gpuarray\__init__.py",
line 33, in <module>
from . import fft, dnn, opt, extra_ops, multinomial, reduction, sort,
rng_mrg, ctc
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\gpuarray\fft.py",
line 14, in <module>
from .opt import register_opt, op_lifter, register_opt2
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\gpuarray\opt.py",
line 85, in <module>
from .linalg import (GpuCusolverSolve, MATRIX_STRUCTURES_SOLVE,
GpuCholesky,
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\gpuarray\linalg.py",
line 5, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'

I'm on a Windows 7, Python 3.6.3, installed with Miniconda3, conda 4.4.7.
Setuptools 38.4.0 is also installed using conda.

Any what's wrong?
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Frédéric Bastien
2018-01-31 22:45:46 UTC
Permalink
How did you install Theano? We only support installing Theano with our
conda package on Windows.
Post by Karin Westin
Hi!
I'm going through the theano tutorial, and when running the function
File "C:\Users\Karin\Desktop\test.py", line 10, in <module>
results, updates = theano.scan(lambda v: T.tanh(T.dot(v, W) + b_sym),
sequences=X)
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\scan_module\scan.py",
line 1005, in scan
from theano import gpuarray
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\gpuarray\__init__.py",
line 33, in <module>
from . import fft, dnn, opt, extra_ops, multinomial, reduction, sort,
rng_mrg, ctc
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\gpuarray\fft.py",
line 14, in <module>
from .opt import register_opt, op_lifter, register_opt2
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\gpuarray\opt.py",
line 85, in <module>
from .linalg import (GpuCusolverSolve, MATRIX_STRUCTURES_SOLVE,
GpuCholesky,
File
"C:\Users\Karin\AppData\Local\Programs\Python\Python36\lib\site-packages\theano\gpuarray\linalg.py",
line 5, in <module>
import pkg_resources
ModuleNotFoundError: No module named 'pkg_resources'
I'm on a Windows 7, Python 3.6.3, installed with Miniconda3, conda 4.4.7.
Setuptools 38.4.0 is also installed using conda.
Any what's wrong?
--
---
You received this message because you are subscribed to the Google Groups
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...