TensorFlow Ubuntu 安装笔记

来源:互联网 发布:安卓编程权威指南第3版 编辑:程序博客网 时间:2024/05/16 17:24

参照

https://www.leiphone.com/news/201606/ORlQ7uK3TIW8xVGF.html

如果出现类似错误,表示pip版本低,去https://pypi.python.org/simple/pip/ 取pip-8.0.0-py2.py3-none-any.whl文件

放在ubuntu下 

sudo install (path)/pip-8.0.0-py2.py3-none-any.whl

Downloading/unpacking flask-mongoengineCleaning up...Exception:Traceback (most recent call last):  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main    status = self.run(options, args)  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 278, in run    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1177, in prepare_files    url = finder.find_requirement(req_to_install, upgrade=self.upgrade)  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 194, in find_requirement    page = self._get_page(main_index_url, req)  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 568, in _get_page    session=self.session,  File "/usr/lib/python2.7/dist-packages/pip/index.py", line 670, in get_page    resp = session.get(url, headers={"Accept": "text/html"})
继续安装
ReadTimeoutError: HTTPSConnectionPool(host='storage.googleapis.com', port=443): Read timed out./usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.

因为SSL的问题,urllib3需要pyopenssl。

最简单的方法是

 $ sudo  pip install pyopenssl ndg-httpsclient pyasn1   sudo apt-get install libffi-dev libssl-dev

如果出现TimeOut  继续重新执行,多执行几次总会安装成功


安装 komodo  IDE

sudo add-apt-repository ppa:mystic-mirage/komodo-edit

sudo apt-get update

sudo apt-get install komodo-edit


原创粉丝点击