Mac OSX使用pip安装tensorflow的文件夹在哪里? [英] Where is the folder for Installing tensorflow with pip, Mac OSX?

查看:514
本文介绍了Mac OSX使用pip安装tensorflow的文件夹在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅使用pip通过以下命令安装tensorflow:

just installed tensorflow using pip with the command:

$ pip install tensorflow

Tensorflow的入门"上,他们有卷积神经网络的示例

On the "Getting Started" for Tensorflow they have an example for convolutional neural networks

$ python tensorflow/models/image/mnist/convolutional.py

使用pip安装时该目录在哪里?

Where is that directory located when installing with pip?

推荐答案

使用pip安装,将软件包安装到目录"site-packages".

Installing with pip, installs the packages to the directory "site-packages".

以下代码显示了tensorflow的位置以及pip在其中安装软件包的位置:

The following code shows the location of tensorflow as well as where pip installs the packages:

$ pip show tensorflow

返回哪个:

Metadata-Version: 2.0
Name: tensorflow
Version: 0.5.0
Summary: TensorFlow helps the tensors flow
Home-page: http://tensorflow.com/
Author: Google Inc.
Author-email: opensource@google.com
License: Apache 2.0
Location: /usr/local/lib/python2.7/site-packages
Requires: six, numpy

此处Location:显示软件包的安装位置

here Location: shows where the package is installed with

$ cd /usr/local/lib/python2.7/site-packages/tensorflow



正如某些人在新版的tensorflow中指出的那样,根据$ echo $TENSORFLOW,您需要查看

As some people pointed out in the newer versions of tensorflow and depending on the $ echo $TENSORFLOW you need to look in either

$ cd /usr/local/lib/python{2,3}.X/{site,dist}-packages/tensorflow

$ cd /usr/local/lib/python2.7/dist-packages/tensorflow/include/tensorflow/core/framework

这篇关于Mac OSX使用pip安装tensorflow的文件夹在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆