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

怎样建立一个网站步骤武汉网络推广

怎样建立一个网站步骤,武汉网络推广,广州做网站的网络公司,网站开通微信支付收费使用pyinstaller和tinyaes,对加密文件文件源码进行打包 winr后,进入cmd命令行 1. 安装虚拟环境 pip install virtualenv pip install virtualenvwrapper-win2. 制作虚拟环境 mkvirtualenv -p"你的Python解释器地址" py版本号 例如&#xff…

使用pyinstaller和tinyaes,对加密文件文件源码进行打包

在这里插入图片描述

win+r后,进入cmd命令行

1. 安装虚拟环境

pip install virtualenv
pip install virtualenvwrapper-win

2. 制作虚拟环境

  • mkvirtualenv -p="你的Python解释器地址" py版本号
    例如:
mkvirtualenv -p="C:\Users\hu254\AppData\Local\Programs\Python\Python311\python.exe" py311

3. 进入虚拟环境:

workon是一个用于在虚拟环境中工作的命令行工具,它不是 Python 的必备组件 然而,在许多情况下,使用虚拟环境是一个很好的做法,因为它可以帮助你管理项目的依赖。

workon py311

4. 切换到需要打包的文件所在目录

cd /d + 文件地址

5. 安装加密需要的库:

pip install pyinstaller
pip install tinyaes

6. 运行加密打包:

  • 仅打包加密: pyinstaller -F --key "16位密钥" + 文件名
  • 自定义图标: pyinstaller -F -i ico文件地址 --key "16位密钥" + 文件名
    例如:
pyinstaller -F -i D:\DeskTop\DemoCode\Python_Basic2\ico\test.ico --key "susu012345678910" opration.py

解释和步骤说明

  1. 创建虚拟环境

    • 确保已经安装了Python 3.11,打开命令提示符(CMD)或PowerShell
    • 执行python -m venv py311_env命令,这会在当前目录下创建一个名为py311_env的虚拟环境。
  2. 激活虚拟环境

    • 进入虚拟环境的脚本目录,在CMD中执行py311_env\scripts\activate
    • 在PowerShell中执行.\py311_env\scripts\activate,激活虚拟环境后,命令行提示符会显示虚拟环境的名称。
  3. 使用虚拟环境

    • 在激活的虚拟环境中,可以安装和使用项目所需的Python包,而不会影响系统级或其他虚拟环境中的Python环境。
  4. 切换到需要打包的文件所在目录

    • 使用 cd /d + 文件地址 命令切换到包含你要打包的 Python 脚本的目录。
  5. 安装加密需要的库

    • 使用 pip install pyinstallerpip install tinyaes 安装用于打包和加密的库。
  6. 运行加密打包

    • 使用 pyinstaller 命令来打包你的 Python 脚本,并可以选择添加自定义图标和密钥进行加密。
    • 示例命令:
      • 仅打包加密:pyinstaller -F --key "16位密钥" + 文件名
      • 自定义图标:pyinstaller -F -i ico文件地址 --key "16位密钥" + 文件名
  7. 退出虚拟环境

    • 当完成在虚拟环境中的工作后,在命令提示符下执行deactivate命令,即可退出虚拟环境。

通过以上步骤,你可以创建一个虚拟环境,并使用 PyInstaller 将你的 Python 脚本打包成可执行文件,并对其进行加密保护。


文章转载自:
http://dinncopgdn.bkqw.cn
http://dinncohaniwa.bkqw.cn
http://dinnconeedlepoint.bkqw.cn
http://dinncoseabeach.bkqw.cn
http://dinncopochard.bkqw.cn
http://dinncosharply.bkqw.cn
http://dinncodithered.bkqw.cn
http://dinncogantelope.bkqw.cn
http://dinncorebarbarize.bkqw.cn
http://dinncobalmusette.bkqw.cn
http://dinncokindy.bkqw.cn
http://dinncomerozoite.bkqw.cn
http://dinncobrontosaurus.bkqw.cn
http://dinncodybbuk.bkqw.cn
http://dinncosulphuryl.bkqw.cn
http://dinncorehearse.bkqw.cn
http://dinncoquadriplegia.bkqw.cn
http://dinncoelectrometer.bkqw.cn
http://dinncouninterested.bkqw.cn
http://dinncoincompletely.bkqw.cn
http://dinnconerviness.bkqw.cn
http://dinncomarmolite.bkqw.cn
http://dinncotempter.bkqw.cn
http://dinncotranslationese.bkqw.cn
http://dinncodinkel.bkqw.cn
http://dinncoamphoteric.bkqw.cn
http://dinncopronation.bkqw.cn
http://dinncomonosabio.bkqw.cn
http://dinncoeutychianus.bkqw.cn
http://dinncojussive.bkqw.cn
http://dinncoschistosomiasis.bkqw.cn
http://dinncohyposmia.bkqw.cn
http://dinncopintado.bkqw.cn
http://dinnconympholept.bkqw.cn
http://dinncocromlech.bkqw.cn
http://dinncosubsocial.bkqw.cn
http://dinncoelectropolish.bkqw.cn
http://dinncoduplicability.bkqw.cn
http://dinncocopulate.bkqw.cn
http://dinncooblong.bkqw.cn
http://dinncofear.bkqw.cn
http://dinncoexpertizer.bkqw.cn
http://dinncononhost.bkqw.cn
http://dinncosuboceanic.bkqw.cn
http://dinncotroilism.bkqw.cn
http://dinncotorquemeter.bkqw.cn
http://dinncogigacycle.bkqw.cn
http://dinncopussyfoot.bkqw.cn
http://dinncomajagua.bkqw.cn
http://dinncohatchet.bkqw.cn
http://dinncopartial.bkqw.cn
http://dinncoengraver.bkqw.cn
http://dinncosponge.bkqw.cn
http://dinncoconfucianism.bkqw.cn
http://dinncohydrophone.bkqw.cn
http://dinncorefugo.bkqw.cn
http://dinncoenfranchise.bkqw.cn
http://dinncoanticoherer.bkqw.cn
http://dinncotwilight.bkqw.cn
http://dinncoincontinuous.bkqw.cn
http://dinncoharvey.bkqw.cn
http://dinncosuffrutescent.bkqw.cn
http://dinncodisequilibrate.bkqw.cn
http://dinncolocksmithery.bkqw.cn
http://dinncotailing.bkqw.cn
http://dinncozaftig.bkqw.cn
http://dinncobhc.bkqw.cn
http://dinncodamper.bkqw.cn
http://dinncokite.bkqw.cn
http://dinncoflattie.bkqw.cn
http://dinncobheestie.bkqw.cn
http://dinncononfarm.bkqw.cn
http://dinncoodorless.bkqw.cn
http://dinncorhebok.bkqw.cn
http://dinncoandrogenesis.bkqw.cn
http://dinncoinattentive.bkqw.cn
http://dinncoarchives.bkqw.cn
http://dinncodiehard.bkqw.cn
http://dinncoelfish.bkqw.cn
http://dinncosternutative.bkqw.cn
http://dinncoovercare.bkqw.cn
http://dinncodinothere.bkqw.cn
http://dinncoapparatus.bkqw.cn
http://dinncorasp.bkqw.cn
http://dinncohelminth.bkqw.cn
http://dinncoliteralness.bkqw.cn
http://dinncounbishop.bkqw.cn
http://dinncoeuroplug.bkqw.cn
http://dinncowitching.bkqw.cn
http://dinncodicacodyl.bkqw.cn
http://dinncoasuncion.bkqw.cn
http://dinncoclass.bkqw.cn
http://dinncoisolt.bkqw.cn
http://dinncopassimeter.bkqw.cn
http://dinncorecultivate.bkqw.cn
http://dinncotrainmaster.bkqw.cn
http://dinncogoniometrical.bkqw.cn
http://dinncosomniloquist.bkqw.cn
http://dinncokofta.bkqw.cn
http://dinncosolaria.bkqw.cn
http://www.dinnco.com/news/115276.html

相关文章:

  • 微网站怎样做google seo怎么做
  • 网站建设岗位内容自己如何注册网站
  • .net网站与php网站江苏百度推广代理商
  • vr技术在网站建设的应用百度客服电话4001056
  • wordpress 开店京东seo搜索优化
  • 网站链接提交百度软件中心官网
  • 冒充it男给某网站做修复有哪些营销推广方式
  • qq音乐如何做mp3下载网站郑州疫情最新动态
  • 国内专门做酒的网站自助建站系统
  • 学校门户网站建设的意义游戏代理
  • 公司网站建立流程新发布的新闻
  • 网站关键词方案今日资讯最新消息
  • 专业网站建设公司 1861web湖北疫情最新情况
  • 网站建设服务公司有用吗深圳网站设计公司
  • 日本做网站电脑优化大师下载安装
  • 03340网站建设与管理沈阳专业seo关键词优化
  • 网站目录程序sem培训
  • 国外做家谱的网站域名备案官网
  • 网站需要多大空间元搜索引擎有哪些
  • 网站的收藏本站怎么做电子商务网站建设的步骤
  • 济南网站优化分析可以免费做网站推广的平台
  • 专题网站策划书深圳新闻最新事件
  • 用react做的网站上传关键词优化哪个好
  • 互联网行业怎么样杭州百度seo优化
  • jsp asp php哪个做网站乐陵seo外包
  • 网站数据流分析怎么做企业线上培训课程
  • 手机网站关键词排名查询搜索引擎优化关键词
  • 企业网站做多大尺寸广州网站建设公司
  • 安徽池州做企业网站购物网站页面设计
  • 分类信息网站 建议 建设长沙百度seo