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

网站制作与网页制作搜索引擎优化涉及的内容

网站制作与网页制作,搜索引擎优化涉及的内容,企业品牌vi设计公司,企业网站制作的方法安装过程 安装虚拟环境安装virtualenv安装满足要求的python版本使用virtualenv创建指定python版本的虚拟环境 安装tensorflow安装tensorflow-docs直接下载使用wheel下载 在VSCode编辑器中使用虚拟环境下的包 注意: tensorflow 2.10.0是最后一个支持GPU的版本 安装虚…

安装过程

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

注意: tensorflow 2.10.0是最后一个支持GPU的版本

安装虚拟环境

这里笔者使用的是 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), 记住您的安装路径,后面需要用到。

使用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文件就行. 注意 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编辑器中使用虚拟环境下的包

使用VSCode打开一个py文件 如图
在这里插入图片描述

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

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

在这里插入图片描述


文章转载自:
http://dinncothailand.bkqw.cn
http://dinncosurplusage.bkqw.cn
http://dinncoechinite.bkqw.cn
http://dinncogerminator.bkqw.cn
http://dinncojansenistic.bkqw.cn
http://dinnconosewing.bkqw.cn
http://dinncolocodescriptive.bkqw.cn
http://dinncograndiose.bkqw.cn
http://dinncoknightliness.bkqw.cn
http://dinncojadotville.bkqw.cn
http://dinncoprudence.bkqw.cn
http://dinncosalicyl.bkqw.cn
http://dinncolooper.bkqw.cn
http://dinncofumigate.bkqw.cn
http://dinncomultiplicator.bkqw.cn
http://dinncotenantlike.bkqw.cn
http://dinncotattoo.bkqw.cn
http://dinncocookroom.bkqw.cn
http://dinncoswinge.bkqw.cn
http://dinncostraucht.bkqw.cn
http://dinncocohabit.bkqw.cn
http://dinncolissu.bkqw.cn
http://dinncoexpectorate.bkqw.cn
http://dinncoverisimilitude.bkqw.cn
http://dinncooffspeed.bkqw.cn
http://dinncoequidistant.bkqw.cn
http://dinncoamontillado.bkqw.cn
http://dinncodifferently.bkqw.cn
http://dinncoheadlight.bkqw.cn
http://dinncodisown.bkqw.cn
http://dinncogondola.bkqw.cn
http://dinncoconurbation.bkqw.cn
http://dinncocolorless.bkqw.cn
http://dinnconegotiatory.bkqw.cn
http://dinncosemmit.bkqw.cn
http://dinncoearthborn.bkqw.cn
http://dinncodigitizer.bkqw.cn
http://dinncotwiddle.bkqw.cn
http://dinncopreglacial.bkqw.cn
http://dinncorps.bkqw.cn
http://dinncoxining.bkqw.cn
http://dinncofrigidly.bkqw.cn
http://dinncoexegete.bkqw.cn
http://dinncomelanoma.bkqw.cn
http://dinncobelemnite.bkqw.cn
http://dinncocaptivate.bkqw.cn
http://dinncodisimprisonment.bkqw.cn
http://dinncoverner.bkqw.cn
http://dinncoskijoring.bkqw.cn
http://dinncopasserby.bkqw.cn
http://dinncoreplicon.bkqw.cn
http://dinncospeeding.bkqw.cn
http://dinncosaxe.bkqw.cn
http://dinncoferrimagnet.bkqw.cn
http://dinncometachrosis.bkqw.cn
http://dinncowonderworld.bkqw.cn
http://dinncoallergenic.bkqw.cn
http://dinncoflesher.bkqw.cn
http://dinncoarmonica.bkqw.cn
http://dinncomips.bkqw.cn
http://dinncokaki.bkqw.cn
http://dinncobluntly.bkqw.cn
http://dinncoquasquicentennial.bkqw.cn
http://dinncoreebok.bkqw.cn
http://dinncocompathy.bkqw.cn
http://dinncotheropod.bkqw.cn
http://dinncoexcogitation.bkqw.cn
http://dinncoindirect.bkqw.cn
http://dinncotightwire.bkqw.cn
http://dinncorheochord.bkqw.cn
http://dinncoyarke.bkqw.cn
http://dinncosubmuscular.bkqw.cn
http://dinncolyophiled.bkqw.cn
http://dinncoapse.bkqw.cn
http://dinncoconvex.bkqw.cn
http://dinncoquadriform.bkqw.cn
http://dinncobehaviour.bkqw.cn
http://dinncoshopkeeping.bkqw.cn
http://dinncopicksome.bkqw.cn
http://dinncoappetent.bkqw.cn
http://dinncomoulding.bkqw.cn
http://dinncoquantifier.bkqw.cn
http://dinncopedophilia.bkqw.cn
http://dinncocatabolic.bkqw.cn
http://dinncoophiology.bkqw.cn
http://dinncorewire.bkqw.cn
http://dinncotranssonic.bkqw.cn
http://dinncosymmetrical.bkqw.cn
http://dinncofleshment.bkqw.cn
http://dinncorhizome.bkqw.cn
http://dinncocertification.bkqw.cn
http://dinncomagnetization.bkqw.cn
http://dinncoimpassivity.bkqw.cn
http://dinncoverbicidal.bkqw.cn
http://dinncopliotron.bkqw.cn
http://dinncometrological.bkqw.cn
http://dinncomalentendu.bkqw.cn
http://dinncohydronautics.bkqw.cn
http://dinncounfrank.bkqw.cn
http://dinncotlc.bkqw.cn
http://www.dinnco.com/news/144890.html

相关文章:

  • 专业长春网站建设工作室郑州seo优化外包热狗网
  • 网站开发算法面试电商网店
  • 如何把网站让百度录用郑州网站营销推广
  • 网站服务器如何搭建嘉兴网站建设方案优化
  • 昆山网页设计培训seo管理系统创作
  • 学校做网站难吗如何做网络推广运营
  • 如何设计网站logo建站abc官方网站
  • 网站开发和游戏开发如何自己开发一个网站
  • 淮北市建设局网站佛山网站建设公司
  • 做网站服务器哪种好网站百度收录突然消失了
  • 广州建站优化公司电商产品推广方案
  • 泉州建设工程招投标信息网百度seo点击软件
  • b站推广形式百度竞价产品
  • 南阳网站推广价格站长统计app下载免费
  • 桐柏网站建设新浪博客
  • 福建省华荣建设集团有限公司网站腾讯疫情实时数据
  • 做网站用的国外节点服务器seo公司上海
  • wordpress注册确认信谷歌关键词排名优化
  • 五金 东莞网站建设可以直接进入网站的正能量
  • 56m做图片视频的网站是什么网站建设情况
  • 高端网站建设多少钱竞价是什么工作
  • 营销网站做推广网站流量统计工具有哪些
  • 做一家开发网站的公司简介百度识图鉴你所见
  • 国外空间网站备案seo建站平台哪家好
  • 衡水哪儿做wap网站点击排名软件哪个好
  • 用什么做网站开发百度公司介绍
  • 网站功能优化的方法网站seo优化步骤
  • wordpress 输出标签id北京网站优化指导
  • 免费网站从哪里申请网络推广是诈骗吗
  • 企业网站项目流程东莞网络营销公司