简体   繁体   English

使用 Anaconda3 在 Pycharm 中丢失了我的 python.exe

[英]Lost my python.exe in Pycharm with Anaconda3

Everything was working perfectly until today, when for some reason my python.exe file disappeared from the Project Interpreter in Pycharm.直到今天,一切都运行良好,但由于某种原因,我的python.exe文件从 Pycharm 的项目解释器中消失了。

It was located in C:\\users\\my_name\\Anaconda3\\python.exe , and for some reason I can't find it anywhere!它位于C:\\users\\my_name\\Anaconda3\\python.exe ,由于某种原因,我在任何地方都找不到它!

Yet, all the packages are here (in the site-packages folder), and only the C:\\users\\my_name\\Anaconda3\\pythonw.exe is available.然而,所有的包都在这里(在 site-packages 文件夹中),只有C:\\users\\my_name\\Anaconda3\\pythonw.exe可用。

With the latest however, some packages I installed on top of those available in Anaconda3 won't be recognized.但是,使用最新版本时,我在Anaconda3可用的软件包之上安装的一些软件包将无法识别。

Therefore, how to get back the python.exe file?因此,如何取回python.exe文件?

I just had the same issue and found out that Avast removed it because it thought it was a threat.我刚刚遇到了同样的问题,发现 Avast 删除了它,因为它认为这是一个威胁。 I found it in Avast -> Protection -> Virus Chest.我在 Avast -> Protection -> Virus Chest 中找到了它。 And from there, you have the option to restore it.从那里,您可以选择恢复它。

The answer repeats the comment to the question.答案重复了对问题的评论。

I had the same issue once after Anaconda update - python.exe was missing.我在 Anaconda 更新后遇到了同样的问题 - python.exe丢失了。 It was Anaconda 3 installed to Program Files folder by MS Visual Studio (Python 3.6 on Windows10 x64).它是由 MS Visual Studio(Windows10 x64 上的 Python 3.6)安装到Program Files夹中的 Anaconda 3。

To solve the problem I manually copied python.exe file from the most fresh python package available (folder pkgs then folder like python-3.6.8-h9f7ef89_7 ).为了解决这个问题,我从可用的最新 python 包中手动复制了python.exe文件(文件夹pkgs然后文件夹像python-3.6.8-h9f7ef89_7 )。

今天我在 anaconda 中的现有环境中缺少 Python.exe,因此我使用 anaconda 克隆我的环境以重新创建 Python.exe 并在 Spyder 中再次使用它。

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

相关问题 无法导入 C:\\Users\\username\\Anaconda3\\python.exe 时如何访问 Pycharm 中的 Anaconda 基础环境? - How to access the Anaconda base environment in Pycharm when I cannot import C:\Users\username\Anaconda3\python.exe? Pyspark:\\ Anaconda3 \\ envs \\ xgboost \\ python.exe]在此时是意外的 - Pyspark: \Anaconda3\envs\xgboost\python.exe] was unexpected at this time PyCharm 无法运行程序 C:\\\\Anaconda\\\\python.exe - PyCharm Cannot Run Program C:\\Anaconda\\python.exe PyCharm将Anaconda python.exe与模块一起使用失败-ModuleNotFoundError:没有名为'PySide'的模块 - PyCharm using Anaconda python.exe with Modules fails - ModuleNotFoundError: No module named 'PySide' Pycharm 找不到 python.exe - Pycharm can't find python.exe PyCharm 5.0.4上python.exe中的SyntaxError - SyntaxError in python.exe on PyCharm 5.0.4 gyp ERR:堆栈错误:找不到 Python 可执行文件“C.\Users\Admin\Anaconda3\python,EXE”,您可以设置 PYTHON 环境变量 - gyp ERR! stack Error: Can't find Python executable “C:\Users\Admin\Anaconda3\python.EXE”, you can set the PYTHON env variable PyCharm 未检测到 anaconda3 环境 - PyCharm not detecting anaconda3 environments 模块可以通过anaconda提示符导入,但不能通过python.exe - Module can import through anaconda prompt, but not through python.exe 来自 PyCharm 和 python.exe 的不同 Python 版本 - Different Python versions from PyCharm and python.exe
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM