centos 7 pip install tensorflow

来源:互联网 发布:upl与域名的关系 编辑:程序博客网 时间:2024/06/05 11:45
echo -e "\e[36m***Installing unzip git-all pkg-config zip g++ zlib1g-dev zlib-devel. Press ENTER when prompted*** \e[0m"
yum -y install unzip git-all pkg-config zip g++ zlib1g-dev zlib-devel

echo -e "\e[36m***Installing swig. Press ENTER when prompted*** \e[0m"
yum -y install swig

echo -e "\e[36m***Installing python-devel python-nose python-setuptools. Press ENTER when prompted*** \e[0m"
yum install python-devel python-nose python-setuptools

echo -e "\e[36m***Installing numpy python-devel scipy. Press ENTER when prompted*** \e[0m"
yum -y install numpy python-devel scipy

echo -e "\e[36m***Installing epel-release. Press ENTER when prompted*** \e[0m"
yum -y install epel-release

echo -e "\e[36m***Installing python-pip python-wheel. Press ENTER when prompted*** \e[0m"
yum install --enablerepo=* python-pip python-wheel
pip install --upgrade pip

echo -e "\e[36m***Installing tensorflow-0.11. Press ENTER when prompted*** \e[0m"
pip install --upgrade https://storage.googleapis.com/tensorflow/linux/gpu/tensorflow-0.11.0rc1-cp27-none-linux_x86_64.whl


===============================================================================================================================
if error:
1 epel error rpm:
cd /opt/
mkdir yum.old
mv /etc/yum.repos.d/epel.repo yum.old/
mv /etc/yum.repos.d/epel-testing.repo yum.old/
yum list
free  -g

if nokey:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

网速太慢:
echo MTU="1400" >> /etc/sysconfig/network-scripts/ifcfg-eth0  添加到文件 开机或重启网络服务生效
ifconfig eth0 mtu 1400  临时生效
0 0
原创粉丝点击