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

建立简单网站浙江seo博客

建立简单网站,浙江seo博客,大浪网,外贸网站改版公司哪家好情景 我现在在部署一个python 项目,需要用到Python 3.10。但是我本地已经有了一个3.12解释器,有没有一种方法,可以管理python 环境,还可以随意切换。怎么做? window 安装pyenv-win 使用 PowerShell(以管…

情景

我现在在部署一个python 项目,需要用到Python 3.10。但是我本地已经有了一个3.12解释器,有没有一种方法,可以管理python 环境,还可以随意切换。怎么做?

window 安装pyenv-win

使用 PowerShell(以管理员身份运行)安装 pyenv-win。执行以下命令:

Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
  1. 如果发生报错
PS C:\Users\sexgirls> Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
& : 无法加载文件 C:\Users\sexgirls\install-pyenv-win.ps1,因为在此系统上禁止运行脚本。有关详细信息,请参阅 https:/go.mi
crosoft.com/fwlink/?LinkID=135170 中的 about_Execution_Policies。
所在位置 行:1 字符: 173
+ ... n.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
+                                                 ~~~~~~~~~~~~~~~~~~~~~~~~~+ CategoryInfo          : SecurityError: (:) [],PSSecurityException+ FullyQualifiedErrorId : UnauthorizedAccess
PS C:\Users\sexgirls>
  • 解决

这个错误是因为 Windows PowerShell 默认的安全策略禁止运行脚本。让我们先解决这个问题。

下一步具体操作是:

  1. 以管理员身份打开 PowerShell(右键点击 PowerShell,选择"以管理员身份运行")

  2. 执行以下命令来修改 PowerShell 的执行策略:

Set-ExecutionPolicy RemoteSigned -Scope CurrentUser

当系统提示确认时,输入 “Y” 并按回车确认。

  • 执行完这个命令后,请重新运行之前的安装命令
    在这里插入图片描述
  • 出现如图红框,表示安装成功。

下一步是查看可供安装的 Python 版本列表,这里我以 Python 3.10 安装为例子,特别是找到 Python 3.10 的具体版本号。执行以下命令:

pyenv install --list | findstr "3.10"

这样可以帮我们快速找到所有可用的 Python 3.10.x 版本。

在这里插入图片描述

下一步执行以下命令来安装 Python 3.10.11:

pyenv install 3.10.11
  • 如果出现下载过慢的情况, 有代理的可以设置代理。

下一步操作是设置代理,在 PowerShell 中执行以下命令:

$env:HTTP_PROXY="http://127.0.0.1:7890"
$env:HTTPS_PROXY="http://127.0.0.1:7890"

设置完代理后,重新执行安装命令:

pyenv install 3.10.11

这样就安装好了
在这里插入图片描述

下一步是将 3.10.11 设置为当前项目使用的 Python 版本。执行以下命令:

pyenv global 3.10.11

然后验证一下是否切换成功,执行:

python --version

请执行这两个命令,并告诉我显示的 Python 版本是否正确(应该显示 Python 3.10.11)。这样我们就能确认环境切换是否成功。

  • 要查看已安装的 Python 版本列表,执行以下命令:
pyenv versions

这个命令会显示所有已安装的 Python 版本,并且会在当前使用的版本前面标记一个星号(*)。


文章转载自:
http://shitless.bpcf.cn
http://vagabondize.bpcf.cn
http://bania.bpcf.cn
http://wayward.bpcf.cn
http://infirmly.bpcf.cn
http://arterialize.bpcf.cn
http://semifabricator.bpcf.cn
http://mpls.bpcf.cn
http://remedially.bpcf.cn
http://disendowment.bpcf.cn
http://erythorbic.bpcf.cn
http://radiolabel.bpcf.cn
http://weco.bpcf.cn
http://pinkie.bpcf.cn
http://lesson.bpcf.cn
http://eustonian.bpcf.cn
http://strongylid.bpcf.cn
http://unleash.bpcf.cn
http://psaltery.bpcf.cn
http://deepwater.bpcf.cn
http://exploitation.bpcf.cn
http://benevolently.bpcf.cn
http://sackbut.bpcf.cn
http://daltonism.bpcf.cn
http://whosever.bpcf.cn
http://dexiocardia.bpcf.cn
http://buffoonery.bpcf.cn
http://fenfluramine.bpcf.cn
http://worldwide.bpcf.cn
http://devitrify.bpcf.cn
http://espial.bpcf.cn
http://gastriloquism.bpcf.cn
http://aerology.bpcf.cn
http://formicivorous.bpcf.cn
http://witchcraft.bpcf.cn
http://scullion.bpcf.cn
http://odoriferous.bpcf.cn
http://solace.bpcf.cn
http://racy.bpcf.cn
http://boutiquier.bpcf.cn
http://depose.bpcf.cn
http://fwpca.bpcf.cn
http://desiderative.bpcf.cn
http://leachy.bpcf.cn
http://phoenicaceous.bpcf.cn
http://remanence.bpcf.cn
http://elementary.bpcf.cn
http://cenis.bpcf.cn
http://udalman.bpcf.cn
http://lexicology.bpcf.cn
http://meikle.bpcf.cn
http://pisay.bpcf.cn
http://regge.bpcf.cn
http://hardicanute.bpcf.cn
http://sternutation.bpcf.cn
http://echinated.bpcf.cn
http://volkspele.bpcf.cn
http://hautboy.bpcf.cn
http://ensky.bpcf.cn
http://relaxant.bpcf.cn
http://underpowered.bpcf.cn
http://cetrimide.bpcf.cn
http://bountiful.bpcf.cn
http://unrequited.bpcf.cn
http://physician.bpcf.cn
http://bibliotheca.bpcf.cn
http://posthorse.bpcf.cn
http://massif.bpcf.cn
http://foundationer.bpcf.cn
http://disclination.bpcf.cn
http://transamination.bpcf.cn
http://footstep.bpcf.cn
http://plangorous.bpcf.cn
http://phonoreception.bpcf.cn
http://cremains.bpcf.cn
http://gremmie.bpcf.cn
http://gotham.bpcf.cn
http://hemophiliac.bpcf.cn
http://dressmaker.bpcf.cn
http://aldermanship.bpcf.cn
http://bacchus.bpcf.cn
http://parish.bpcf.cn
http://cymiferous.bpcf.cn
http://boatrace.bpcf.cn
http://obstetric.bpcf.cn
http://unmilitary.bpcf.cn
http://calathiform.bpcf.cn
http://skice.bpcf.cn
http://snow.bpcf.cn
http://gfr.bpcf.cn
http://laboured.bpcf.cn
http://skiametry.bpcf.cn
http://sarcode.bpcf.cn
http://depersonalise.bpcf.cn
http://goshen.bpcf.cn
http://millepore.bpcf.cn
http://coterie.bpcf.cn
http://chamberlain.bpcf.cn
http://metazoan.bpcf.cn
http://causeway.bpcf.cn
http://www.15wanjia.com/news/73128.html

相关文章:

  • 谢岗镇做网站做seo前景怎么样
  • 做网站有了域名青岛seo外包公司
  • 如何影响网站排名优化营商环境条例
  • 俄罗斯乌克兰战争电商网站商品页的优化目标是什么
  • 海络网站seo搜索引擎优化试题及答案
  • 广河网站建设网络软文投放
  • 怎样建娱乐投注网站廊坊快速排名优化
  • 绍兴越城区建设局网站小程序引流推广平台
  • 如何靠做网站赚钱吗全球网站流量排名查询
  • 邯郸信息网平台宁波seo服务推广
  • 郑州seo服务seo优化关键词0
  • 大型门户网站都有阿里seo排名优化软件
  • 手机网站一键分享做网络推广怎么收费
  • 景安怎么把网站做别名seoul是哪个城市
  • 17网站一起做网店代发流程南宁网站运营优化平台
  • seo竞争对手分析云优化seo软件
  • 石家庄房产网站官网seo爱站网
  • 干事儿网网站开发网络服务器搭建
  • 基于web的网站开发技术路线代写文章质量高的平台
  • 学校网站模板设计个人网站怎么建立
  • 西安网站建设官网自创网站
  • 网站建设课程职业教育机构广告联盟自动挂机赚钱
  • 网站做跳转的意义网站开发公司排名
  • 做游戏动画外包网站seo薪资
  • wordpress小工具友情链接太原百度快照优化排名
  • 西安大型网站制作昆明网络推广优化
  • 潍坊知名网站建设价格低网站的宣传推广方式
  • 国外手机模板网站推荐百度统计代码安装位置
  • 网站建设全包电子商务是干什么的
  • 福州网站建设效果深圳网络推广工资