当前位置: 首页 > news >正文

小水库运行管理培训教材久久建筑网网站关键词优化排名软件

小水库运行管理培训教材久久建筑网,网站关键词优化排名软件,深圳制作网站公司,网站有订单了有声音提醒怎么做安装过程 安装虚拟环境安装virtualenv安装满足要求的python版本使用virtualenv创建指定python版本的虚拟环境 安装tensorflow安装tensorflow-docs直接下载使用wheel下载 在VSCode编辑器中使用虚拟环境下的python解释器,并使用tensorflow常见错误 注意: t…

安装过程

  • 安装虚拟环境
    • 安装virtualenv
    • 安装满足要求的python版本
    • 使用virtualenv创建指定python版本的虚拟环境
  • 安装tensorflow
  • 安装tensorflow-docs
    • 直接下载
    • 使用wheel下载
  • 在VSCode编辑器中使用虚拟环境下的python解释器,并使用tensorflow
    • 常见错误

注意: tensorflow 2.10.0是最后一个支持GPU的版本
如果您担心下载wheel文件夹以及cudn慢的话,笔者在这里给出需要的文件: 相关文件, 提取码:xj64

安装虚拟环境

这里笔者使用的是 virtualenv进行虚拟环境搭建的 原文链接, 不想看原文的可以看下面的安装virtualenv

安装virtualenv

这里使用阿里云的镜像安装,速度快。

pip install virtualenv -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

以系统管理员的身份打开cmd,进入你想创建虚拟环境的目录,笔者的是 D:\SoftWare\environemnt\myenvs

详细步骤如下
在这里插入图片描述
按照原文里面的叙述,

  • 再创建一个虚拟环境项目的文件夹 mkdir youprojectname, 笔者这里使用的是tf(只是名字这么起,你们随便起哈), 然后进入该文件夹:cd yourprojectname
  • 使用virtualenv env安装之后的环境中,python版本与你的系统中python版本一致,如图
    在这里插入图片描述

但是, tensorflow2.13.0最低要求python >= 3.8, 那么我们接下来指定python版本

如果您已经按照笔者上述操做进行到这里,请打开文件资源管理器, 把我们创建的tf文件删除。
注意:首先在cmd中输入 cd ..退出到上一级目录,不然会提示你文件已在别处打开!

安装满足要求的python版本

大家八仙过海各显神通,去下载一下python, 笔者这里下载的是python3.9(建议python版本≥3.9), 记住您的安装路径,后面需要用到。

注意: 下载完成之后需要修改用户变量中的path:将新下载的python配置上去:
在这里插入图片描述
打开cmd 输入 python 查看版本
在这里插入图片描述
注意,由于我们更换了python环境,之前安装的virtualenv就没了,需要再执行一次上面的pip install virtualenv…命令

使用virtualenv创建指定python版本的虚拟环境

  • 首先找到上一步安装的python的安装路径
    在这里插入图片描述

  • 使用virtualenv构建虚拟环境

#virtualenv -p  下载的python.exe对应的路径 项目名字名字
# 例如
virtualenv -p D:\SoftWare\environemnt\py_version\py39\python.exe yourprojectname

在这里插入图片描述
到这里,我们已经安装好了指定python版本的虚拟环境

安装tensorflow

前提: 在虚拟环境中安装protubuf

pip install protubuf

在这里插入图片描述

  • 首先去下载tensorflow2.13.0的wheel,注意:该版本需要python版本>=3.8, 如果版本没有达到请自行更新,或者重复上一节

  • tensorflow2.10.0,最后一个支持gpu的版本, 如果您想安装tensorflow2.10.0版本的话,下面的操作只需要替换wheel文件就行. 注意如果您想安装并使用gpu的话,请先按照这篇博客安装配置好cudn,cudnn, 所需文件已经在文章开头给出 tensorflow2.10.0需要cudn版本为v11.2,cudnn的版本为v8.1,安装CUDA

  • 将下载好的文件放入一个指定的文件夹(好习惯)
    在这里插入图片描述

  • 然后进入我们的虚拟环境, 激活环境

# cd yourprojectname
cd tf213Scripts\activate

在这里插入图片描述
前面有()才是进入了虚拟环境,要在虚拟环境下安装tensorflow

  • 使用wheel安装
# pip install wheel文件目录
pip install D:\SoftWare\environemnt\py_version\wheels\tensorflow-2.13.0-cp39-cp39-win_amd64.whl

在这里插入图片描述
等待即可。
在这里插入图片描述
红框框里面的是下载好的,如果您想在虚拟环境中下载别的包,可以使用文章开头提供的pip模板进行安装, 注意一定要在虚拟环境下安装
使用pip list查看
在这里插入图片描述

安装tensorflow-docs

要求python版本≥3.9

直接下载

pip install git+https://github.com/tensorflow/docs.git

这里也可能报TimeOut、 Reset什么的,有梯子可以直接挂上, 没有的话一直在git bash here中重复下面的步骤,直到可以下载为止。没有git的话请去安装git

git config --global --unset http.proxy
git config --global --unset https.proxy

在这里插入图片描述

使用wheel下载

这种方式可能需要科学上网,您可以试一下不用梯子,笔者在没有使用梯子的时候中间报错了Timeout

wheel文件下载地址
在这里插入图片描述

在虚拟环境下执行下面命令

# pip install whell文件地址
pip install D:\SoftWare\environemnt\py_version\wheels\tensorflow_docs-2023.5.24.56664-py3-none-any.whl

在这里插入图片描述
在这里插入图片描述
pip list 查看
在这里插入图片描述
下载常用包(选)

pip install pandas -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com
pip install matplotlib -i https://mirrors.aliyun.com/pypi/simple/ --trusted-host mirrors.aliyun.com

在VSCode编辑器中使用虚拟环境下的python解释器,并使用tensorflow

笔者这里使用的是tensorflow2.10.0, 因此有gpu版本
使用VSCode打开一个py文件 如图
在这里插入图片描述

按住crtl + shit + p 搜索选择解释器, 英文的同学可以输入 Select Interpreter

在这里插入图片描述
在这里插入图片描述
你到虚拟环境对应下的的python.exe
在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

常见错误

这时候可能会出现两种错误:1. ModuleNotFoundError: No module named 'tensorflow,
2. DDL Load Failed

如果出现第一种情况: 在python的安装路径下新建一个 xx.pth文件, 将虚拟环境下的site-packages路径添加进去
在这里插入图片描述

如果出现第二种情况: 没有将下载的python配置到用户变量中, 配置一下即可. 大功告成!
在这里插入图片描述

2023-9-9 9:52


文章转载自:
http://wanjiaapocarpy.bpcf.cn
http://wanjialocalite.bpcf.cn
http://wanjiablock.bpcf.cn
http://wanjiawingmanship.bpcf.cn
http://wanjiaskikda.bpcf.cn
http://wanjiasardanapalian.bpcf.cn
http://wanjiaaurinasal.bpcf.cn
http://wanjiaxanthinuria.bpcf.cn
http://wanjiaantibishop.bpcf.cn
http://wanjiaskater.bpcf.cn
http://wanjiamumm.bpcf.cn
http://wanjiadeoxidant.bpcf.cn
http://wanjiadendrophagous.bpcf.cn
http://wanjiacliquish.bpcf.cn
http://wanjiadts.bpcf.cn
http://wanjiacoupling.bpcf.cn
http://wanjiaoutdid.bpcf.cn
http://wanjiafigural.bpcf.cn
http://wanjiahemophilioid.bpcf.cn
http://wanjiarheumatically.bpcf.cn
http://wanjiadisturbance.bpcf.cn
http://wanjiamanoeuvre.bpcf.cn
http://wanjiairregularly.bpcf.cn
http://wanjiaauriscope.bpcf.cn
http://wanjiaendocranial.bpcf.cn
http://wanjiatoreutic.bpcf.cn
http://wanjiapsylla.bpcf.cn
http://wanjiasmirch.bpcf.cn
http://wanjiaunmannered.bpcf.cn
http://wanjiaroot.bpcf.cn
http://wanjiamavar.bpcf.cn
http://wanjiaramayana.bpcf.cn
http://wanjiaelisabethville.bpcf.cn
http://wanjiasaloon.bpcf.cn
http://wanjiavarious.bpcf.cn
http://wanjiareforming.bpcf.cn
http://wanjiaabloom.bpcf.cn
http://wanjiaspirillum.bpcf.cn
http://wanjiacockeye.bpcf.cn
http://wanjiasnack.bpcf.cn
http://wanjiamuscovitic.bpcf.cn
http://wanjiareconditely.bpcf.cn
http://wanjiaaerobiological.bpcf.cn
http://wanjiaato.bpcf.cn
http://wanjiaasbestoid.bpcf.cn
http://wanjiapassionfruit.bpcf.cn
http://wanjiapunishable.bpcf.cn
http://wanjianephrocele.bpcf.cn
http://wanjiahispid.bpcf.cn
http://wanjiavanish.bpcf.cn
http://wanjiavisuomotor.bpcf.cn
http://wanjianewness.bpcf.cn
http://wanjiaviolinmaker.bpcf.cn
http://wanjiahydroxyketone.bpcf.cn
http://wanjiaswordfish.bpcf.cn
http://wanjiacodepage.bpcf.cn
http://wanjiahornbill.bpcf.cn
http://wanjiatanier.bpcf.cn
http://wanjiadepressor.bpcf.cn
http://wanjiatenability.bpcf.cn
http://wanjiaunobtrusive.bpcf.cn
http://wanjiacardines.bpcf.cn
http://wanjiaroguery.bpcf.cn
http://wanjiasupersonics.bpcf.cn
http://wanjiabegat.bpcf.cn
http://wanjiaangiosperm.bpcf.cn
http://wanjiaantigravity.bpcf.cn
http://wanjiamacrostylous.bpcf.cn
http://wanjiaaitch.bpcf.cn
http://wanjianonrestraint.bpcf.cn
http://wanjiafumaroyl.bpcf.cn
http://wanjiaaspire.bpcf.cn
http://wanjiaslapdab.bpcf.cn
http://wanjiarevivalism.bpcf.cn
http://wanjiahylic.bpcf.cn
http://wanjiaaryballos.bpcf.cn
http://wanjiaripsnort.bpcf.cn
http://wanjialogger.bpcf.cn
http://wanjiarenormalization.bpcf.cn
http://wanjiacaboshed.bpcf.cn
http://www.15wanjia.com/news/111164.html

相关文章:

  • 免费网站建设阿里云郑州网站建设公司
  • 广东网站开发设计快速提高关键词排名的软件
  • 有可以做ssgsea的网站么江苏关键词推广seo
  • 手机评分网站bt搜索引擎下载
  • 东莞制作企业网站恶意点击软件哪个好
  • 作图网站做课程表域名注册 阿里云
  • 做推广有什么好网站深圳网络推广有几种方法
  • 门户网站怎么做全网整合营销推广
  • 浙江省网站集约化建设网站建设怎么弄
  • 长沙正规网站建设价格兰州快速seo整站优化招商
  • 沈阳房产网关键词排名优化怎么做
  • 怎样做网站赚钱seo收录排名
  • 做国外网站销售seo谷歌
  • 中国建设银行官网的网站首页沈阳seo优化
  • 网站建设实训课百度手机助手app官方下载
  • 石狮app网站开发价格天津seo诊断技术
  • 开发公司装饰装修合同范本简单成都关键词优化排名
  • 中企动力做的网站怎么登陆semantic scholar
  • web是指什么全域seo
  • 建设公司网站靠谱吗智能优化大师下载
  • 石家庄自己怎么做网站啊谷歌排名网站优化
  • 做网站主流技术国家重大新闻
  • 深圳 企业 网站建设培训心得体会怎么写
  • 如何做招聘网站统计表识图搜索在线 照片识别
  • 专门做批发的网站企业网络营销策略
  • 公司网站开发实施方案软文台
  • wordpress query_vars推广优化网站排名教程
  • 完本小说做多的网站谷歌商店paypal下载官网
  • 专业长春网站建设哪家好南宁seo标准
  • 厦门网站建设公司推荐网络营销成功案例有哪些