请问,如何在虚拟环境中安装Tensorflow?我用过这些命令,但不起作用。。在sudo -H pip3 install tensorflow --proxy https://XXX.XX.XX.X:3128sudo -E pip3 install tensorflow --proxy https://XXX.XX.XX.X:3128sudo -E pip install tensorflow --proxy https://XXX.XX.XX.X:3128sudo -H pip install tensorflow --proxy https://XXX.XX.XX.X:3128sudo pip install tensorflow --proxy https://XXX.XX.XX.X:3128结果是:
^{pr2}$
以下是我的python和pip版本:(venv)root@graphene-62:~/tensorflow# pip -V
pip 8.1.2 from /usr/local/lib/python2.7/dist-packages/pip-8.1.2-py2.7.egg
(python 2.7)
(venv)root@graphene-62:~/tensorflow# python -V
Python 2.7.6
在我尝试pip install -U tensorflow之后,我得到了以下结果:Cannot uninstall 'six'
然后我尝试了pip install -U tensorflow --ignore-installed six,通过tf版本检查,我得到了:(venv)root@graphene-62:~/tensorflow# python -c "import tensorflow as tf; print(tf.__version__)"
Illegal instruction (core dumped) (venv)root@graphene-62:~/tensorflow#
有没有其他方法可以下载和安装Tensorflow?在
tensorflow python2 tensorflow python2.7
转载文章标签 tensorflow python2 tensorflow python Tensorflow 文章分类 Python 后端开发
-
基于Python和TensorFlow实现BERT模型应用
在本文中,我们详细介绍了BERT模型的基本原理,并使用Python和TensorFlow实现了一个简单的BERT分类模型。
Python tensorflow 加载 Transformer Bert -
centos7下安装TensorFlow1.15 for Python2.7
前言:TensorFlow作为一个现在来说比较成熟的机器学习框架还是比较强大的,但安装该框架对很多同学来说是比较困难的,大部
tensorflow 深度学习 python 运维 linux