Spring中的aware接口详情
324
2022-08-29
【Python】Tensorflow-cpu-1.15版本环境准备
python环境准备
pip配置
[global] index-url=[install] trusted-host=pypi.douban.com
在环境变量PATH添加pip路径:%HOMEPATH%\pip
tensorflow安装
pip install six numpy wrapt h5py 创建一个虚拟环境:F:\tf-course>virtualenv --system-site-packages -p python3.7 ./env 激活虚拟环境:F:\tf-course>env\Scripts\activate 安装tensorflow(env) F:\tf-cource>pip install tensorflow-cpu==1.15
验证tensorlfow可用
(env) F:\tf-cource>pythonPython 3.7.4 (default, Aug 9 2019, 18:34:13) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32Warning:This Python interpreter is in a conda environment, but the environment hasnot been activated. Libraries may fail to load. To activate this environmentplease see "help", "copyright", "credits" or "license" for more information.>>> import tensorflow as tf>>> hello=tf.constant("Hello Tensorflow")>>> sess=tf.Session()>>> sess.run(hello)b'Hello Tensorflow'>>>
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~