mac安裝tensorflow遇到問(wèn)題

tensflow安裝參考(http://www.tensorfly.cn/tfdoc/get_started/os_setup.html)
執(zhí)行如下:

pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl

出現(xiàn)如下問(wèn)題:

Collecting tensorflow==0.5.0 from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
  Downloading https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl (9.8MB)
    100% |████████████████████████████████| 9.8MB 121kB/s 
Collecting numpy>=1.9.2 (from tensorflow==0.5.0)
  Downloading http://mirrors.aliyun.com/pypi/packages/b8/97/ecff917542e3a8a33bc8e88c031ed50c90577fd205eab362b29f3e57c09e/numpy-1.14.3-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.7MB)
    100% |████████████████████████████████| 4.7MB 201kB/s 
Collecting six>=1.10.0 (from tensorflow==0.5.0)
  Downloading http://mirrors.aliyun.com/pypi/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Installing collected packages: numpy, six, tensorflow
  Found existing installation: numpy 1.8.0rc1
    DEPRECATION: Uninstalling a distutils installed project (numpy) has been deprecated and will be removed in a future version. This is due to the fact that uninstalling a distutils project will only partially uninstall the project.
    Uninstalling numpy-1.8.0rc1:
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 778, in install
    requirement.uninstall(auto_confirm=True)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 754, in uninstall
    paths_to_remove.remove(auto_confirm)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_uninstall.py", line 115, in remove
    renames(path, new_path)
  File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/utils/__init__.py", line 267, in renames
    shutil.move(old, new)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 302, in move
    copy2(src, real_dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 131, in copy2
    copystat(src, dst)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 103, in copystat
    os.chflags(dst, st.st_flags)
OSError: [Errno 1] Operation not permitted: '/tmp/pip-Dtv6KS-uninstall/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy-1.8.0rc1-py2.7.egg-info'
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

接下來(lái)先升級(jí)pip

pip install --upgrade pip

重新執(zhí)行安裝命令

pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl

出現(xiàn)如下問(wèn)題:

Collecting tensorflow==0.5.0 from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
  Using cached https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Collecting numpy>=1.9.2 (from tensorflow==0.5.0)
  Downloading http://mirrors.aliyun.com/pypi/packages/b8/97/ecff917542e3a8a33bc8e88c031ed50c90577fd205eab362b29f3e57c09e/numpy-1.14.3-cp27-cp27m-macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.whl (4.7MB)
    100% |████████████████████████████████| 4.7MB 215kB/s 
Collecting six>=1.10.0 (from tensorflow==0.5.0)
  Downloading http://mirrors.aliyun.com/pypi/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
matplotlib 1.3.1 requires nose, which is not installed.
matplotlib 1.3.1 requires tornado, which is not installed.
Installing collected packages: numpy, six, tensorflow
  Found existing installation: numpy 1.8.0rc1
Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Installing collected packages: six, tensorflow
  Found existing installation: six 1.4.1
Cannot uninstall 'six'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.

看到出現(xiàn)了2個(gè)問(wèn)題芳撒,其中一個(gè)是nose笔刹,tornado沒(méi)有安裝舌菜,第三個(gè)是不能安裝numpy,six染乌,因?yàn)榇嬖谂f的版本荷憋。
從而執(zhí)行如下解決:

pip install nose
pip install tornado
pip install numpy --upgrade --ignore-installed
pip install six --upgrade --ignore-installed

最后再次執(zhí)行安裝成功:

superxyndeMacBook-Pro:~ root# pip install https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Looking in indexes: http://pypi.qima-inc.com/youzan/dev/+simple/ --extra-index-url, http://mirrors.aliyun.com/pypi/simple
Collecting tensorflow==0.5.0 from https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
  Using cached https://storage.googleapis.com/tensorflow/mac/tensorflow-0.5.0-py2-none-any.whl
Requirement already satisfied: numpy>=1.9.2 in /Library/Python/2.7/site-packages (from tensorflow==0.5.0) (1.14.3)
Requirement already satisfied: six>=1.10.0 in /Library/Python/2.7/site-packages (from tensorflow==0.5.0) (1.11.0)
Installing collected packages: tensorflow
Successfully installed tensorflow-0.5.0
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
  • 序言:七十年代末瘫里,一起剝皮案震驚了整個(gè)濱河市谨读,隨后出現(xiàn)的幾起案子劳殖,更是在濱河造成了極大的恐慌,老刑警劉巖宣增,帶你破解...
    沈念sama閱讀 222,681評(píng)論 6 517
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場(chǎng)離奇詭異灵妨,居然都是意外死亡泌霍,警方通過(guò)查閱死者的電腦和手機(jī)烹吵,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 95,205評(píng)論 3 399
  • 文/潘曉璐 我一進(jìn)店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來(lái)呀酸,“玉大人,你說(shuō)我怎么就攤上這事介时∈锕眩” “怎么了刽脖?”我有些...
    開封第一講書人閱讀 169,421評(píng)論 0 362
  • 文/不壞的土叔 我叫張陵,是天一觀的道長(zhǎng)院水。 經(jīng)常有香客問(wèn)我檬某,道長(zhǎng)橙喘,這世上最難降的妖魔是什么胶逢? 我笑而不...
    開封第一講書人閱讀 60,114評(píng)論 1 300
  • 正文 為了忘掉前任,我火速辦了婚禮碟刺,結(jié)果婚禮上半沽,老公的妹妹穿的比我還像新娘者填。我一直安慰自己占哟,他們只是感情好榨乎,可當(dāng)我...
    茶點(diǎn)故事閱讀 69,116評(píng)論 6 398
  • 文/花漫 我一把揭開白布蜜暑。 她就那樣靜靜地躺著肛捍,像睡著了一般篇梭。 火紅的嫁衣襯著肌膚如雪恬偷。 梳的紋絲不亂的頭發(fā)上袍患,一...
    開封第一講書人閱讀 52,713評(píng)論 1 312
  • 那天滞欠,我揣著相機(jī)與錄音筛璧,去河邊找鬼惹恃。 笑死巫糙,一個(gè)胖子當(dāng)著我的面吹牛参淹,可吹牛的內(nèi)容都是我干的浙值。 我是一名探鬼主播亥鸠,決...
    沈念sama閱讀 41,170評(píng)論 3 422
  • 文/蒼蘭香墨 我猛地睜開眼神妹,長(zhǎng)吁一口氣:“原來(lái)是場(chǎng)噩夢(mèng)啊……” “哼鸵荠!你這毒婦竟也來(lái)了蛹找?” 一聲冷哼從身側(cè)響起庸疾,我...
    開封第一講書人閱讀 40,116評(píng)論 0 277
  • 序言:老撾萬(wàn)榮一對(duì)情侶失蹤届慈,失蹤者是張志新(化名)和其女友劉穎金顿,沒(méi)想到半個(gè)月后揍拆,有當(dāng)?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體嫂拴,經(jīng)...
    沈念sama閱讀 46,651評(píng)論 1 320
  • 正文 獨(dú)居荒郊野嶺守林人離奇死亡剪芍,尸身上長(zhǎng)有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點(diǎn)故事閱讀 38,714評(píng)論 3 342
  • 正文 我和宋清朗相戀三年饱普,在試婚紗的時(shí)候發(fā)現(xiàn)自己被綠了套耕。 大學(xué)時(shí)的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片冯袍。...
    茶點(diǎn)故事閱讀 40,865評(píng)論 1 353
  • 序言:一個(gè)原本活蹦亂跳的男人離奇死亡,死狀恐怖舶吗,靈堂內(nèi)的尸體忽然破棺而出誓琼,到底是詐尸還是另有隱情腹侣,我是刑警寧澤傲隶,帶...
    沈念sama閱讀 36,527評(píng)論 5 351
  • 正文 年R本政府宣布,位于F島的核電站帖鸦,受9級(jí)特大地震影響作儿,放射性物質(zhì)發(fā)生泄漏馋劈。R本人自食惡果不足惜妓雾,卻給世界環(huán)境...
    茶點(diǎn)故事閱讀 42,211評(píng)論 3 336
  • 文/蒙蒙 一妒蛇、第九天 我趴在偏房一處隱蔽的房頂上張望绣夺。 院中可真熱鬧陶耍,春花似錦烈钞、人聲如沸毯欣。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,699評(píng)論 0 25
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽(yáng)偎巢。三九已至压昼,卻和暖如春匠题,著一層夾襖步出監(jiān)牢的瞬間但金,已是汗流浹背冷溃。 一陣腳步聲響...
    開封第一講書人閱讀 33,814評(píng)論 1 274
  • 我被黑心中介騙來(lái)泰國(guó)打工盖淡, 沒(méi)想到剛下飛機(jī)就差點(diǎn)兒被人妖公主榨干…… 1. 我叫王不留褪迟,地道東北人。 一個(gè)月前我還...
    沈念sama閱讀 49,299評(píng)論 3 379
  • 正文 我出身青樓毅往,卻偏偏與公主長(zhǎng)得像牵咙,于是被迫代替她去往敵國(guó)和親。 傳聞我的和親對(duì)象是個(gè)殘疾皇子攀唯,可洞房花燭夜當(dāng)晚...
    茶點(diǎn)故事閱讀 45,870評(píng)論 2 361

推薦閱讀更多精彩內(nèi)容

  • 5.3 Windows安裝說(shuō)明 譯者:Python 文檔協(xié)作翻譯小組,原文:Windows Installatio...
    布客飛龍閱讀 1,709評(píng)論 0 4
  • 1. 介紹 首先讓我們來(lái)看看TensorFlow渴丸! 但是在我們開始之前另凌,我們先來(lái)看看Python API中的Ten...
    JasonJe閱讀 11,756評(píng)論 1 32
  • 引言 以Django為代表的python web應(yīng)用部署時(shí)采用wsgi協(xié)議與服務(wù)器對(duì)接(被服務(wù)器托管),而這類服務(wù)...
    大熊_7d48閱讀 2,051評(píng)論 0 3
  • linux和windows下安裝python拓展包-pycharm戒幔、numpy吠谢、scipy、matplotlib诗茎、...
    hzyido閱讀 81,280評(píng)論 2 10
  • 你說(shuō)走走停透叶看看王污,才能細(xì)細(xì)品味 而我不想走和看了,只想就此停留 我想在你身邊楚午,為你摘下那片斜陽(yáng) 我想在你身邊昭齐,為你...
    就是萌萌蟲閱讀 388評(píng)論 0 2