在运行代码是遇到问题如下:
Traceback (most recent call last):
File “D:\Anaconda\envs\Python3\lib\site-packages\sonnet_init_.py”, line 47, in ensure_dependency_available_at_version
pkg = importlib.import_module(package_name)
File "D:\Anaconda\envs\Python3\lib\importlib_init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “D:\pych\PyCharm 2019.1.3\helpers\pycharm_jb_unittest_runner.py”, line 35, in
main(argv=args, module=None, testRunner=unittestpy.TeamcityTestRunner, buffer=not JB_DISABLE_BUFFERING)
File “D:\Anaconda\envs\Python3\lib\unittest\main.py”, line 100, in init
self.parseArgs(argv)
File “D:\Anaconda\envs\Python3\lib\unittest\main.py”, line 147, in parseArgs
self.createTests()
File “D:\Anaconda\envs\Python3\lib\unittest\main.py”, line 159, in createTests
self.module)
File “D:\Anaconda\envs\Python3\lib\unittest\loader.py”, line 220, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File “D:\Anaconda\envs\Python3\lib\unittest\loader.py”, line 220, in
suites = [self.loadTestsFromName(name, module) for name in names]
File “D:\Anaconda\envs\Python3\lib\unittest\loader.py”, line 154, in loadTestsFromName
module = import(module_name)
File “D:\deepmind\deepmind-research-master\deepmind-research-master\cs_gan\tests\gan_test.py”, line 16, in
import sonnet as snt
File “D:\Anaconda\envs\Python3\lib\site-packages\sonnet_init_.py”, line 63, in
ensure_dependency_available_at_version(‘tensorflow’, ‘1.8.0’)
File "D:\Anaconda\envs\Python3\lib\site-packages\sonnet_init.py", line 54, in _ensure_dependency_available_at_version
package_name, min_version, pip_name, pip_name))
SystemError: Sonnet requires tensorflow (minimum version 1.8.0) to be installed. If using pip, run pip install tensorflow
or pip install tensorflow-gpu
我的TensorFlow版本是1.15.0rc2,dm-sonnet版本是1.34
希望看到文章的各位可以帮助我,谢谢!