简体   繁体   English

Amazon EC2实例上的Tensorflow导入错误

[英]Tensorflow Import Error on Amazon EC2 Instance

I am trying to run a convolutional neural network in my p3.16xlarge Amazon EC2 instance. 我正在尝试在我的p3.16xlarge Amazon EC2实例中运行卷积神经网络。 I installed tensorflow and all the other requisite libraries for my program using pip install, however, when I run this program, I receive the error message: 我使用pip install为我的程序安装了tensorflow和所有其他必需的库,但是,当我运行此程序时,收到错误消息:

"ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory" "Failed to load the native TensorFlow runtime." “” ImportError:libcublas.so.9.0:无法打开共享的对象文件:没有这样的文件或目录“”“无法加载本机TensorFlow运行时。

These are my instance details: Python 2.7.14 (default, May 2 2018, 18:31:34) Amazon Linux AMI 2018.03.0.20180811 x86_64 HVM GP2 这些是我的实例详细信息:Python 2.7.14(默认,2018年5月2日,18:31:34)Amazon Linux AMI 2018.03.0.20180811 x86_64 HVM GP2

Upon looking into the issue, it seems like I need CUDA 9.0 whereas most linux machines use CUDA 9.1. 在调查了这个问题之后,似乎我需要CUDA 9.0,而大多数Linux机器都使用CUDA 9.1。 How exactly can I downgrade CUDA/change/configure my instance so that tensorflow runs? 我如何准确降级CUDA /更改/配置实例以使tensorflow运行? I do not know how to do this. 我不知道该怎么做。

Thank you 谢谢

a lot of customers find that the Deep Learning AMI is the simplest way to run their workloads on EC2. 许多客户发现,深度学习AMI是在EC2上运行其工作负载的最简单方法。 It comes pre-installed with all the popular libraries. 它预装有所有流行的库。

https://aws.amazon.com/machine-learning/amis/ https://aws.amazon.com/machine-learning/amis/

Alternatively, you could consider using Amazon SageMaker Store your data in S3, train and deploy on fully-managed infrastructure. 或者,您可以考虑使用Amazon SageMaker将数据存储在S3中,在完全托管的基础架构上进行培训和部署。 Quite easier than managing their own EC2 instances :) 比管理自己的EC2实例要容易得多:)

https://aws.amazon.com/sagemaker/ https://aws.amazon.com/sagemaker/

I'd love to hear your feedback and answer any questions. 我希望听到您的反馈并回答任何问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM