尝试使用help(tensorflow)时python3.6 help命令转储核心

时间:2018-12-18 16:11:49

标签: python-3.x tensorflow

我正在虚拟机上运行Ubuntu Linux 18.04, 我已经在venv中正确安装了tensorflow,并且导入正常,并且 我可以使用tensorflow运行一些示例程序,但是当我尝试使用help(tf) python提示符时(如下面的日志所示),我遇到了coredump

`(venv) shiv@shiv-vbox:~/TF$ python
 Python 3.6.7 (default, Oct 22 2018, 11:32:17) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
>>> x=0
>>> help(x)

>>> help(tf)
Segmentation fault (core dumped)`

我的安装有问题吗?我尝试多次安装以确认安装方面的某些问题,但是在我做help(tf)时,我一直都感到束缚,对此的任何输入都会有所帮助。

-谢谢

更新

我按照以下步骤进行安装

shiv@shiv-vbox:~/TF$ sudo virtualenv --system-site-packages -p python3 ./venv Already using interpreter /usr/bin/python3 Using base prefix '/usr' New python executable in /home/shiv/TF/venv/bin/python3 Also creating executable in /home/shiv/TF/venv/bin/python Installing setuptools, pkg_resources, pip, wheel...done. shiv@shiv-vbox:~/TF$ source ./venv/bin/activate (venv) shiv@shiv-vbox:~/TF$ (venv) shiv@shiv-vbox:~/TF$ ls Tflow venv (venv) shiv@shiv-vbox:~/TF$ pip install --upgrade pip Requirement already up-to-date: pip in ./venv/lib/python3.6/site-packages (18.1) (venv) shiv@shiv-vbox:~/TF$ pip install tensorflow

0 个答案:

没有答案