简体   繁体   English

如何将 python 3.7 降级到 3.6?

[英]How to downgrade python 3.7 to 3.6?

After updating my system via pacman (arch linux 4.18) most of the python scripts aren't working anymore (errors about missing modules, pipenv errors, vim plugins errors).通过 pacman (arch linux 4.18) 更新我的系统后,大多数 python 脚本不再工作(关于缺少模块的错误、pipenv 错误、vim 插件错误)。

How can I revert python to 3.6?如何将 python 恢复到 3.6?

Google didn't offer any satisfying solutions on that issue谷歌在这个问题上没有提供任何令人满意的解决方案

Uninstall your current installation with:使用以下命令卸载当前安装:

$ pacman -Rdd python

and then install this package: https://aur.archlinux.org/packages/python36/然后安装这个包: https : //aur.archlinux.org/packages/python36/

使用conda search python选择要降级的 python 版本,如果要降级到 3.6.0,则使用类似conda install python=3.6.0 3.6.0 的内容

Try this in your terminal/cmd:在你的终端/cmd 中试试这个:

$ brew unlink python
$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/e128fa1bce3377de32cbf11bd8e46f7334dfd7a6/Formula/python.rb
$ brew switch python 3.6.5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM