简体   繁体   English

用conda安装张量流

[英]Installation tensorflow with conda

When we pip install all packages of python. 当我们pip安装python的所有包。

Why we cannot install with conda directly? 为什么我们不能直接安装conda?

just like conda install tensorlfow-gpu==1.2.1 or conda install tensorflow==1.2.1 . 就像conda install tensorlfow-gpu==1.2.1conda install tensorflow==1.2.1

when i am using conda install tensorflow-gpu I get these type of error. 当我使用conda install tensorflow-gpu我得到这些类型的错误。

SSLError(MaxRetryError('HTTPSConnectionPool(host=\\'repo.anaconda.com\\', port=443): Max retries exceeded with url: /pkgs/r/win-64/repodata.json.bz2 (Caused by SSLError("Can\\'t connect to HTTPS URL because the SSL module is not available."))')) SSLError(MaxRetryError('HTTPSConnectionPool(host = \\'repo.anaconda.com \\',port = 443):使用url超出最大重试次数:/pkgs/r/win-64/repodata.json.bz2(由SSLError引起的(“无法连接到HTTPS URL,因为SSL模块不可用。“))'))

From the error one can understand that you need to install OpenSSL for Python. 从错误中可以理解您需要安装OpenSSL for Python。

For that do 为此

sudo apt-get install libssl-dev libffi-dev

and then 接着

conda install -c anaconda openssl

If you still have the problem (if execstack flag is the issue): 如果你仍然有问题(如果execstack标志是问题):

execstack -c path_to_anaconda/lib/libcrypto.so.1.0.0

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

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