简体   繁体   English

安装python时出错

[英]Error when installing python

I was trying to install python and for some weird and unknown reason, the installation process is stopped and returns this error 我正在尝试安装python,由于某些奇怪且未知的原因,安装过程已停止并返回此错误

An error occurred during the installation of assembly 'Microsoft.VC90.CRT,version="9.0.21022.8",publicKeyToken="1fc8b3b9a1e18e3b",processorArchitecture="amd64",type="win32"'. 程序集'Microsoft.VC90.CRT,version =“ 9.0.21022.8”,publicKeyToken =“ 1fc8b3b9a1e18e3b”,processorArchitecture =“ amd64”,type =“ win32”'的安装过程中发生错误。 Please refer to Help and Support for more information. 请参阅帮助和支持以获取更多信息。

This is the first time I encountered such error. 这是我第一次遇到这样的错误。 I tried 'googling' it but there seems to be no way to fix this up. 我尝试“搜索”它,但似乎没有办法解决此问题。 Do you guys have any suggestions? 你们有什么建议吗? I just want to install python. 我只想安装python。

I know this is an old post but I recently ran into this exact same issue. 我知道这是一篇过时的文章,但是最近我遇到了同样的问题。 It was caused by my machine having pending Windows updates that needed a restart to be applied. 这是由于我的计算机具有待定的Windows更新,需要重新启动才能导致的。

Once you've reset your machine remove the C:\\Python27 folder (this is important). 重置计算机后,请删除C:\\ Python27文件夹(这很重要)。

Rerun the installer and it should work with no issues :-) 重新运行安装程序,它应该没有问题:-)

Please provide the environment you have installed. 请提供您已安装的环境。

if windows 2008 R2, because of the rights issue, you need to cancel the installation of pip, it is best not to install in C. 如果是Windows 2008 R2,由于权限问题,需要取消pip的安装,最好不要在C中安装。

msiexec.exe /quiet /i python-2.7.10.amd64.msi ADDLOCAL=DefaultFeature TARGETDIR=D:\python27

I encountered the same problem. 我遇到了同样的问题。 The reason is that Python-dependent system updates need to be rebooted before they can be configured correctly 原因是依赖于Python的系统更新需要重新启动才能正确配置

Try Anaconda it has a lot of libraries already packaged in it. 尝试Anaconda,它已经打包了很多库。 And it comes with conda : a package manager. 它带有conda :程序包管理器。

conda install my-package

And my-package is already installed. 并且my-package已经安装。

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

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