siv*_*nes 5 python powershell virtualenvwrapper
这是我得到的信息.为了它的价值,我打开了我的注册表,注意到没有2.7文件夹,PythonCore直接进入InstallPath.有任何想法吗?
Set-ItemProperty : Cannot find path 'HKCU:\Software\Python\PythonCore\2.7\InstallPath' because it does not exist.
At C:\Users\...\Documents\WindowsPowerShell\Modules\virtualenvwrapper\win.psm1:127 char:21
+ set-itemproperty <<<< -path "HKCU:/Software/Python/PythonCore/$pyVer/InstallPath" -name "(default)" -value $pyBa
se
+ CategoryInfo : ObjectNotFound: (HKCU:\Software\...2.7\InstallPath:String) [Set-ItemProperty], ItemNotFo
undException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand
Set-ItemProperty : Cannot find path 'HKCU:\Software\Python\PythonCore\2.7\PythonPath' because it does not exist.
At C:\Users\...\Documents\WindowsPowerShell\Modules\virtualenvwrapper\win.psm1:128 char:21
+ set-itemproperty <<<< -path "HKCU:/Software/Python/PythonCore/$pyVer/PythonPath" -name "(default)" -value "$pyBa
se\Lib;$pyBase\DLLs;$pyBase\Lib\lib-tk"
+ CategoryInfo : ObjectNotFound: (HKCU:\Software\...\2.7\PythonPath:String) [Set-ItemProperty], ItemNotFo
undException
+ FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.SetItemPropertyCommand
Run Code Online (Sandbox Code Playgroud)
我有同样的问题,谷歌搜索并设法解决了解决方案.这是我遇到的.
Python似乎更新HKEY_CURRENT_USER下的注册表,一些安装在HKEY_LOCAL_MACHINE下查找python.
我遇到的有用资料来源
所以假设你的python安装在 C:\python27
从这个在Windows中恢复你的Python注册表文章 -
17 - 21,
[HKEY_CURRENT_USER\Software\Python\Pythoncore\2.7\InstallPath]
@ ="C:\ python27"
[HKEY_CURRENT_USER\Software\Python\Pythoncore\2.7\PythonPath] @ ="C:\ python27; C:\ python27\Lib \; C:\ python27 \的DLL \"
fix_python.reg或任何你想要的:)希望能帮助到你.
| 归档时间: |
|
| 查看次数: |
1337 次 |
| 最近记录: |